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.
Query parameters
PnL interval
Start timestamp in milliseconds
End timestamp in milliseconds
Response
PnL history response.
Example response
{
"data": [
[
1767225600000,
"100.50"
]
]
}