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
}

Changes

Changed in 3 of the 32 revisions of this API.5

    • the endpoint scheme security HmacAuth was added to the API

      api-security-added

    • the endpoint scheme security ApiKeyAuth was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the endpoint scheme security ApiKeyAuth was added to the API

      api-security-added

    • the endpoint scheme security bearer was removed from the API

      api-security-removed

    • the endpoint scheme security limitless_session was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog