Skip to main content
GET
Get portfolio PnL chart

Authorizations

lmts-api-key
string
header
required

Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.

Query Parameters

timeframe
string

Timeframe window for percent change and chart series

Example:

"7d"

Response

PnL chart data

timeframe
string
required

Timeframe window used for previous/current comparison

Example:

"7d"

data
object[]
required

Realised PnL series (USD) for the selected timeframe

currentValue
number
required

Current realised PnL (USD)

Example:

-7.04

previousValue
number
required

Previous realised PnL (USD) at timeframe start

Example:

-6.5

percentChange
number
required

Percent change between previousValue and currentValue (realised PnL)

Example:

8.24

current
object | null

Current PnL snapshot (hybrid: realised + unrealized + total)