AArtery

PnL summary across every event the caller org has fills on

get/v1/me/pnl

Joins your `customer_wallets` against `event_trades`, runs a FIFO buy/sell walk per (event × market) and returns realized PnL + an unrealized mark. Unrealized uses the resolved payoff (1 if YES, 0 if NO) when the event has resolved unanimously, otherwise the most recent observed trade price. Pass `groupBy=wallet` to partition by bound wallet or `groupBy=provider` to roll up by provider; the response keeps the same `{ total, data, pagination, applied }` envelope across all three groupings. Sort with a single `sort=` param (prefix `-` for descending). Cursor pagination via `limit`/`cursor` is supported only for `groupBy=event`; the bounded wallet/provider groups always return the full list.

PnL summary across every event the caller org has fills on · Artery API Docs