---
title: "Get Account Statistics"
method: GET
path: "/api/v1/account/statistics"
tags: ["Account"]
---

# Get Account Statistics

`GET /api/v1/account/statistics`

## Request

- Base URL: `https://api.ekiden.fi`
- URL: `https://api.ekiden.fi/api/v1/account/statistics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ekidenfi/apis/ekiden-gateway/docs/api/v1/account/statistics/get.ts> (a function with typed inputs; its response is checked against the schema)

Query account equity, PnL, volume, and ROI. Optional step: hour/day/week/month. Newest `limit` rows (default 100, max 1000).

## Query parameters

- `sub_account_address` string, nullable
- `start_time` string, date-time, nullable
- `end_time` string, date-time, nullable
- `step` 'hour' | 'day' | 'week' | 'month', nullable: Temporal resolution for statistics. Single-letter shorthands are allowed(h/d/w/m).
- `limit` integer, nullable
- `sorting_order` 'asc' | 'desc', nullable: Sort direction for account statistics snapshots (older/newer first).

## Response `200`

Account statistics

- GetAccountStatisticsResponse
  - `list` AccountStatistics[], required
    - `equity` string, required
    - `realised_pnl_cum` string, required: Cumulative realized PnL of the closed positions, fees, and funding.
    - `roi` string, required
    - `sub_account_address` string, required
    - `timestamp` string, date-time, required
    - `unrealised_pnl` string, required: Unrealized PnL of the current open positions.
    - `volume` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

## Changes

- **2026-05-28** `75ffe546b73a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/changes/api/v1/account/statistics/get.md)

---

[API](https://skmtc.dev/ekidenfi/apis/ekiden-gateway.md) - [All operations](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/revisions/fad9eecaba2e?raw)
