v1
latestOpenAPI 3.1.02026-07-265385123.6 KBAnalytics
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