REST Endpoint
Query Parameters
TypeScript SDK
Retrieve account statistics:Example
Response Fields
Each entry may include:timestampsub_account_addressequityrealised_pnl_cumunrealised_pnlvolumeroi
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/account/statistics
| Parameter | Required | Description |
|---|---|---|
sub_account_address | No | Sub-account to query. If omitted, the backend determines the accessible account(s) from the authenticated user. |
start_time | No | Start timestamp in Unix milliseconds. |
end_time | No | End timestamp in Unix milliseconds. |
step | No | Aggregation interval. Supported values: hour, day, week, month (aliases h, d, w, m are also accepted). |
limit | No | Maximum number of records to return. |
sorting_order | No | Sort order: asc or desc. |
const statistics = await client.account.getStatistics({
sub_account_address,
start_time,
end_time,
step: "day",
limit: 100,
sorting_order: "desc",
});
curl \
-H "Authorization: Bearer <jwt>" \
"https://api.cnt.ekiden.fi/api/v1/account/statistics?sub_account_address=<sub_account_address>"
timestampsub_account_addressequityrealised_pnl_cumunrealised_pnlvolumeroi