v1

latestOpenAPI 3.0.02026-07-265081124.2 KB
Portfolio

Get portfolio PnL chart

Hybrid PnL: realised series + current total snapshot

get/portfolio/pnl-chart

Query parameters

timeframestring
Example:7d

Timeframe window for percent change and chart series

Response

PnL chart data

timeframestring required

Timeframe window used for previous/current comparison

currentValuenumber required

Current realised PnL (USD)

previousValuenumber required

Previous realised PnL (USD) at timeframe start

percentChangenumber required

Percent change between previousValue and currentValue (realised PnL)

currentobject nullable

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

Example response

{
  "timeframe": "7d",
  "data": [
    {
      "timestamp": 1700000000000,
      "value": 123.45
    }
  ],
  "currentValue": -7.04,
  "previousValue": -6.5,
  "percentChange": 8.24
}