HTTP endpoints
Get portfolio
Equity and PnL curves plus summary stats for an account over a time range.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| account | yes | string (hex) | Ethereum-style account address for the sub-account context. |
| from | yes | integer (int64) | Start timestamp in milliseconds (inclusive). Use 0 for all available history. |
| to | yes | integer (int64) | End timestamp in milliseconds (inclusive). Use 0 for the latest available snapshot. |
| interval | yes | string | Aggregation interval for the portfolio curves. |
Response fields
| Parameter | Required | Type | Description |
|---|---|---|---|
equity | yes | object[] | Equity curve sampled from account snapshots. |
equity[].timestamp | yes | integer (int64) | — |
equity[].value | yes | string | — |
pnl | yes | object[] | PnL curve derived from equity, net of bridge and vault cash flows. |
pnl[].timestamp | yes | integer (int64) | — |
pnl[].value | yes | string | — |
summary | yes | object | — |
summary.averageLoss | yes | string | — |
summary.averageWin | yes | string | — |
summary.avgDailyPnl | yes | string | — |
summary.longPnl | yes | string | — |
summary.losses | yes | string | — |
summary.maxDrawdownPct | yes | string | — |
summary.pnl | yes | string | — |
summary.pnlVolatilityPct | yes | string | — |
summary.pnlVolatilityUsd | yes | string | — |
summary.profitFactor | yes | string | — |
summary.returnPct | yes | string | — |
summary.sharpeRatio | yes | string | — |
summary.shortPnl | yes | string | — |
summary.totalFunding | yes | string | — |
summary.totalTrades | yes | integer (int64) | — |
summary.volume | yes | string | — |
summary.winRate | yes | string | — |
summary.wins | yes | string | — |
Response example
A sample 200 response body is attached to this operation as an OpenAPI example — see the Example panel on this page.
GET
Get portfolio
Path Parameters
Ethereum-style account address for the sub-account context.
Start timestamp in milliseconds (inclusive). Use 0 for all available history.
Required range:
x >= 0End timestamp in milliseconds (inclusive). Use 0 for the latest available snapshot.
Required range:
x >= 0Aggregation interval for the portfolio curves. Candle timeframe/interval for aggregation
Available options:
1m, 5m, 15m, 30m, 1h, 4h, 1d Example:
"1h"
Get portfolio