Skip to main content
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

x-api-key
string
header
required

Path Parameters

address
string
required

Wallet address

Query Parameters

group
enum<string>
default:day

Bucket size

Available options:
hour,
day,
week,
month
period
enum<string>

Time window shortcut

Available options:
1d,
7d,
30d,
1y
after
integer
default:1

Unix timestamp lower bound. Values below 1 are clamped to 1.

before
integer

Unix timestamp upper bound

limit
integer
default:1000

Maximum bucket count, clamped to 1000

Required range: 1 <= x <= 1000

Response

Wallet P&L buckets