Added
2026.06.29 - Release PnL Chart API
22 days ago by Dqd
New API to retrieve wallet PnL chart data over time, with support for configurable time ranges and PnL calculation scope.
Features
Wallet - PnL Chart
- Retrieve time-series wallet PnL chart data
- Support custom time range selection with
time_fromandtime_to - Support
position_scopeto control PnL calculation mode - Default
time_fromto 100 days before the current time when omitted - Default
time_toto the current time when omitted - Limit the maximum time range between
time_fromandtime_toto 100 days
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
x-chain | string | No | chain-specific | Chain header for supported wallet PnL networks. |
wallet | string | Yes | - | Wallet address. |
position_scope | string | No | duration_only | PnL calculation mode. duration_only calculates PnL only for each selected time bucket. cumulative calculates realized PnL cumulatively from the start time, while unrealized PnL is based on the all-time open position. |
time_from | string | No | current time - 100 days | Start time in YYYY-MM-DD HH:mm:ss format. |
time_to | string | No | current time | End time in YYYY-MM-DD HH:mm:ss format. |
