Skip to main content
POST
Batch positions for one wallet across mints

Authorizations

X-API-Key
string
header
required

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

Path Parameters

wallet
string
required

Wallet address (base58, 32–44 characters).

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
mints
string[]
required
Required array length: 1 - 100 elements

Response

Batch positions

wallet
string
pnl_mode
string
count
integer
positions
(object | null)[]

A single (wallet, mint) cost-basis position. All *_sol fields are already SOL (lamports/1e9). avg_cost_per_token and any spot price are lamports per atomic token unit. first_trade_ts/last_trade_ts are epoch milliseconds.