v1
latestOpenAPI 3.1.02026-07-24130315342.2 KBAccount Endpoints
Get closed (realized) trading positions for an account
Get a paginated, per-trade breakdown of a wallet's realized P&L. Each closed position reflects FIFO (first-in, first-out) cost-basis lot matching.
get/api/v2/account/{address}/pnl/closed-positions
Path parameters
addressstring required
The wallet address
Query parameters
sort_bystring
Sort order: TOP_TRADES (default) or RECENT
limitinteger
Number of results to return per page (1-200, default 20)
nextstring
Cursor for the next page of results
Response
Closed positions