Wallet P&L time series
Wallet P&L
Wallet P&L Time Series
Realized P&L bucketed by hour, day, week, or month — chart-ready time series for a wallet.
GET
Wallet P&L time series
Returns wallet P&L buckets for charting. With
period, after, or before, each row is a fixed time window (hour, day, week, or month). A running cumulative_pnl is included so the response can be plotted directly.
Without an explicit time filter, the endpoint returns a single all-time summary bucket that matches GET /v3/wallets/{address}/pnl.
In event-series mode, wins, losses, and events count realized P&L events in the selected window. In default summary mode, counts are position counts and the response includes count_type: "positions" and summary_bucket: true.
Rows at timestamp 0 or earlier are ignored in event-series mode, so explicit event windows start at Unix second 1.
Request
Query parameters
If
after and period are both set, after wins.
Examples
All-time summary bucket
Daily P&L for the last 7 days
Hourly P&L for an explicit window
Weekly P&L for the last year
Response fields
Errors
Authorizations
Path Parameters
Wallet address
Query Parameters
Bucket size
Available options:
hour, day, week, month Time window shortcut
Available options:
1d, 7d, 30d, 1y Unix timestamp lower bound. Values below 1 are clamped to 1.
Unix timestamp upper bound
Maximum bucket count, clamped to 1000
Required range:
1 <= x <= 1000Response
Wallet P&L buckets

