Wallet trade history with per-trade PnL
Cursor-paginated trade history for a wallet, newest first. Per-trade pnl_delta_sol is the FIFO realized gain/loss on sells; null on buys.
Filter by from_token or to_token to scope to a specific mint. For Phase 4 both params filter against the swap’s token mint (pump.fun is single-mint-vs-SOL). True two-leg Jupiter routing attribution ships in Phase 5.
hide_arb and parse_jupiter are accepted but are no-ops in Phase 4. The response always includes a coverage_note pointing to Phase 5. Wire them into your UI now so they take effect without a contract change.
Response cached 30 seconds.
Authorizations
Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).
Path Parameters
Wallet address (base58, 32–44 characters).
Query Parameters
1 <= x <= 200Cursor — Unix epoch milliseconds. Returns trades strictly older than this timestamp. Use next_before from the previous response.
Filter to trades involving this token mint.
Filter to trades involving this token mint (alias of from_token in Phase 4; full two-leg routing in Phase 5).
Filter to a single DEX by integer ID. See DexId for the mapping.
No-op in Phase 4. Will filter arbitrage round-trips when the arb tagger ships in Phase 5.
No-op in Phase 4. Will expand Jupiter aggregator hops and attribute trades to source/destination tokens in Phase 5.
Response
Trade history page
Cursor-paginated trade history for a wallet, newest first.

