v2

latestOpenAPI 3.0.3Apache 2.02026-07-3149289180.2 KB

Get PnL

Get PnL history for the authenticated account. If no end time is provided, the current time will be used. Maximum of 1000 entries returned per request.

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"
    ]
  ]
}