v1

latestOpenAPI 3.1.02026-07-265385123.6 KB
Analytics

Get portfolio chart data

Returns time series data for PnL or account value over specified time range. PnL = Cumulative Realized PnL from completed trades. Account Value = Initial Deposits - Withdrawals + Realized PnL (excludes unrealized PnL).

get/api/v1/portfolio_chart

Query parameters

accountstring required

User account address (user query alias is also accepted)

range'24h' | '7d' | '30d' | '90d' | 'all' required

Time range for chart data

data_type'pnl' | 'account_value' required

Data type: pnl or account_value

Response

Portfolio chart data retrieved successfully

data_pointsnumber double required
timestampinteger required
vault_equitynumber double nullable

Vault equity: user's proportional share of vault NAV(s). None for users with no vault deposits, or for PnL data_type.