Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ekiden.fi/llms.txt

Use this file to discover all available pages before exploring further.

Use account statistics to fetch time-series trading metrics for a sub-account.

Endpoint

GET /api/v1/account/statistics
Query parameters:
ParameterRequiredNotes
sub_account_addressNoSub-account to query. Auth context may determine the accessible account set.
start_timeNoStart timestamp in milliseconds.
end_timeNoEnd timestamp in milliseconds.
stepNoAggregation step. See OpenAPI for accepted values.
limitNoMaximum rows to return.
sorting_orderNoSort direction.

Example

curl "https://api.ekiden.fi/api/v1/account/statistics?sub_account_address=0xsubacct&start_time=1731541800000&end_time=1732146600000&step=1d" \
  -H "Authorization: Bearer <jwt>"
Response body:
{
  "list": [
    {
      "timestamp": 1731541800000,
      "volume": "125000.50",
      "roi": "0.034"
    }
  ]
}
Field coverage can expand as the backend adds statistics. Use the generated REST reference for the exact AccountStatistics schema.