Wallet PnL curve
get_user_pnl_seriesHow has a Hyperliquid wallet's PnL gone over time? Its realized PnL over time: buckets with realized PnL and fees paid in each, by default daily over the last 30 days. Add the buckets up for a running PnL curve. Realized only: unrealized PnL on open positions is in get_user_state. For totals over a range use get_user_summary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "get_user_pnl_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default now | |
| from | No | Window start: Unix ms or seconds, ISO 8601 (2026-10-01T00:00:00Z), or relative (-7d, -24h, now). Default 30 days ago | |
| address | Yes | 0x-prefixed 20-byte hex address | |
| bucket_ms | No | Bucket size in milliseconds: 3600000 for hourly, 86400000 for daily (default) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, Unix milliseconds | |
| data | No | Buckets | |
| from | No | Window start, Unix milliseconds | |
| bucket | No | Bucket size | |
| notice | No | A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key | |
| address | No | Wallet address (0x…) |