LedgerReadService
Get Equity History Series
Retrieve equity history as columnar series data. Supports optional subaccount, range, account-bucket filtering, and grouping by account or asset.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/equity/history/series?accountCode=FUNDING&groupBy=ACCOUNT&range=1d&subaccountId=45LUmqjT' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"btcPrices": [
"61000.25"
],
"bucket": "1m",
"endTsSec": 1735689600,
"points": 1,
"quoteAsset": "USDT",
"range": "1d",
"series": [
{
"account": {
"accountCode": 1,
"name": "Trading"
},
"equity": [
"0.0001"
]
}
],
"startTsSec": 1735689600
}Optional account bucket filter (comma-separated codes or names: funding, trading).
Grouping mode (defaults to account).
History window (defaults to 1d).
Optional subaccount public id (base58).
BTC-USDT close prices as decimal strings in USDT, one per timestamp, for example '61000.25'. Enables client-side conversion to BTC denomination without refetch.
["61000.25"]Sampling interval between points, such as "5m" or "1h".
1mLast point timestamp in seconds since epoch (UTC).
1735689600Number of aligned points in each returned series.
1Human-readable quote asset symbol (always "USDT").
USDTResolved history window.
1daccount bucket code
1human-readable name ("funding", "trading")
Tradingpublic asset id (0 for "OTHER" bucket)
asset symbol ("BTC", "ETH", "OTHER")
Equity values as decimal strings in USDT with at most 4 decimal places, for example '10250.1234'. Values align 1:1 with timestamps.
["0.0001"]First point timestamp in seconds since epoch (UTC).
1735689600| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |