v1

latestOpenAPI 3.0.02026-07-265081124.2 KB
Public Portfolio

Get portfolio PnL chart (public)

Hybrid PnL: realised series + current total snapshot

get/portfolio/{account}/pnl-chart

Path parameters

accountstring required
Example:0x742d35Cc6634C0532925a3b844Bc454e4438f44e

User Ethereum address

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
}