latestOpenAPI 3.0.12026-08-16171142480.4 KB

ff1699330afa

Account API

Get data collector records for a specific account

Retrieves equity, balance, and floating PnL time-series data collected for advanced analytics, drawdown monitoring, and equity curve construction.

get/rest/api/v1/accounts/{accountId}/dataCollector

Path parameters

accountIdstring uuid required

Query parameters

limitinteger

Maximum number of records to return (default: 10000, use -1 for all records)

startTimestring

Start date filter (ISO-8601 format)

endTimestring

End date filter (ISO-8601 format)

Response

OK

accountIdstring uuid

Account ID

balancenumber

Account balance (closed positions only) at the time of recording. Represents the account value based on closed trades only.

equitynumber

Account equity (including floating PnL) at the time of recording. Represents the current account value including open positions.

floatingPnLnumber

Floating PnL (unrealized profit/loss from open positions) at the time of recording. Calculated as equity minus balance.

idstring

Unique record identifier

timestampinteger

Timestamp in milliseconds (Unix epoch) when this data was recorded

Example response

[
  {
    "accountId": "123e4567-e89b-12d3-a456-426614174000",
    "balance": 10000,
    "equity": 10500.25,
    "floatingPnL": 500.25,
    "timestamp": 1672531200000
  }
]