outcome_id the wallet has touched, plus a cross-market totals block. Sorted by best-performing market first.
Endpoint
Response
Use cases
- PnL dashboard — render summary cards + per-market table in one query.
- Tax/audit export — group by
outcome_status='resolved'for finalized P/L. - Best/worst markets for a wallet — markets are pre-sorted by
realized + settlement_realized_pnl DESC.
Examples
Notes
- For active markets,
unrealized_pnl_estimateis mark-to-mid using the latest poll snapshot. Mids can be stale or absent for sides with no active maker. settlement_realized_pnlis0until the market resolves. For the canonical “what did this wallet make on this market” once settled, userealized_pnl + settlement_realized_pnl.net_pnl_after_feesdoes NOT subtract unrealized — it’s the booked P/L only.