Portfolio

Get portfolio PnL chart

Hybrid PnL: realised series + current total snapshot

get/portfolio/pnl-chart

Request

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
}

Changes

No recorded changes to this operation across all 1 revision of this API.