Skip to main content
GET
/
portfolio
/
pnl-chart
Get portfolio PnL chart
curl --request GET \
  --url https://api.limitless.exchange/portfolio/pnl-chart \
  --header 'Authorization: Bearer <token>'
{
  "timeframe": "7d",
  "data": [
    {
      "timestamp": 1700000000000,
      "value": 123.45
    }
  ],
  "currentValue": -7.04,
  "previousValue": -6.5,
  "percentChange": 8.24,
  "current": {}
}

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

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