v1

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

Wallet - PnL Details

Retrieve a wallet's overall PnL and trading statistics, along with aggregated PnL and trading details for each token.

post/wallet/v2/pnl/details

Headers

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

The chain support PNL data.

Request body

walletstring required
token_addressesstring[]
duration'all' | '90d' | '30d' | '7d' | '24h'
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.

sort_type'asc' | 'desc'
sort_by'last_trade'
limitinteger
offsetinteger

Example request

{
  "wallet": "5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1",
  "token_addresses": [
    "2VKDTnMF9hmDfCG4i7yPHsfYzYCRhLwQcgUQPxvvYKnV"
  ]
}

Response

JSON object containing a wallet

successboolean required
dataobject required