latestOpenAPI 3.0.3Apache 2.02026-08-2156323220.5 KB

76e4e47cf3aa

Get PnL

Get PnL history for the authenticated account. If no end time is provided, the current time will be used. Each point is the PnL realized inside its interval bucket — not a running total. Buckets are aligned to the Unix epoch, and one in which nothing was realized is omitted, so the series is sparse. A point is stamped with the last populated hour in its bucket, not with the bucket's start, so every returned timestamp falls within the requested window. Window bounds select whole one-hour rollup rows before coarser buckets are formed. Maximum of 1000 entries returned per request — of buckets, so a coarser interval covers a longer window before more is set. When more is true, page by re-requesting from one millisecond past the last timestamp returned; that always lands on the next bucket, never back inside the one just served.

get/v1/account/pnl

Query parameters

interval'1h' | '4h' | '1d' | '1w' required

PnL interval

start_timestampinteger required

Start timestamp in milliseconds

Example:1767225600000
end_timestampinteger

End timestamp in milliseconds

Example:1767229200000

Response

PnL history response.

moreboolean required

More data available

Example response

{
  "data": [
    [
      1767225600000,
      "100.50"
    ]
  ]
}