Skip to main content
GET
Get portfolio PnL chart

Authorizations

Authorization
string
header
required

JWT token for API access (alternative to cookie auth)

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 realised PnL snapshot