v1

latestOpenAPI 3.1.02026-07-2410781551.8 KB
Wallet, Networth & PnL

Wallet - PnL Chart

Retrieve the realized PnL chart of a wallet.

get/wallet/v2/pnl/chart

Query parameters

walletstring required

The wallet of the account.

position_scope'duration_only' | 'cumulative'

Calculation mode for PnL. 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. Defaults to duration_only.

time_fromstring

Specify the start time in YYYY-MM-DD HH:mm:ss format. Defaults to 100 days before the current time. The time range between time_from and time_to must not exceed 100 days.

time_tostring

Specify the start time in YYYY-MM-DD HH:mm:ss format. Defaults to the current time.

Headers

x-chain'solana' | 'ethereum' | 'arbitrum' | 'avalanche' | 'bsc' | 'optimism' | 'polygon' | 'base' | 'zksync' | 'monad' | 'hyperevm' | 'mantle' | 'megaeth' | 'robinhood'

The chain support PNL data.

Response

JSON object containing a wallet pnl chart

successboolean required
dataobject required