LedgerReadService
Get Portfolio Equity History Series
Retrieve root portfolio equity history for the master account, top owned subaccounts, and remaining owned subaccounts.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/equity/portfolio/history/series?range=1d' \ --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": [
"0.005"
],
"bucket": "1m",
"endTsSec": 1735689600,
"points": 1,
"quoteAsset": "USDT",
"range": "1d",
"series": [
{
"equity": [
"0.0001"
]
}
],
"startTsSec": 1735689600
}History window (defaults to 1d).
BTC-USDT close price at each timestamp, scaled by 1e9 (same as price_ticks). Enables client-side conversion to BTC denomination without refetch.
["0.005"]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.
1dEquity in quote currency (USDT) scaled by 1e4 (4 decimals). Values align 1:1 with timestamps.
["0.0001"]Public account or subaccount ID. Its encoded entity type distinguishes the master account from an owned subaccount. Omitted for Remaining.
True when this series combines all non-selected owned subaccounts.
First point timestamp in seconds since epoch (UTC).
1735689600| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |