Skip to main content
POST
Batch wallet PnL summaries

Authorizations

X-API-Key
string
header
required

Preferred for the swap endpoints (/swaps/*, /stats/*, /trending, /pool-events).

Query Parameters

pnl_mode
enum<string>
default:adjusted

PnL accounting mode. strict (FIFO) and adjusted (weighted-avg cost) are realized-PnL figures; raw is net cash-flow (Σ sells − Σ buys), not realized PnL. Unknown values fall back to adjusted.

Available options:
raw,
strict,
adjusted

Body

application/json
wallets
string[]
required
Required array length: 1 - 100 elements

Response

Batch summaries

pnl_mode
string
count
integer
summaries
(object | null)[]

Cost-basis PnL summary for a wallet. All *_sol fields are SOL. unrealized_sol is read-time spot Σ(price−avg_cost)*balance; null-priced mints contribute 0. Wallets with no positions return zeros and an empty positions array.

reconciled
boolean

true only when every item was checked against on-chain holdings.

reconciliation_source
enum<string>

live when every wallet was checked against on-chain holdings; partial when at least one could not be (reconciled is then false). Each summary carries its own pair.

Available options:
live,
partial