Get Closed Positions
Positions
Get Closed Positions
GET
Get Closed Positions
Returns cached exits for a wallet with filtering, sorting, and pagination. Use this endpoint to retrieve historical positions that have been fully exited, showing realized profit/loss.
Query Parameters
Wallet address whose closed positions should be returned.Example:
0x56687bf447db6ffa42ffe2204a05edaa20f55839Comma-separated list of condition IDs to filter positions by specific markets.Example:
0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917Substring search against market title (max 100 chars).
Maximum number of rows to return.Range:
0 to 50Cursor offset for pagination.Range:
0 to 100000Sort column for the response.Options:
REALIZEDPNL, TITLE, PRICE, AVGPRICE, TIMESTAMPSort direction (ascending or descending).Options:
ASC, DESCResponse
Returns an array of closed position objects with the following fields:The wallet address that held the position.
The asset identifier in the format
conditionId:outcomeIndex.The condition ID (market identifier) for this position.
Final token balance at the time of exit.
Average price paid for this position.
The initial value invested in this position.
Current market value (typically 0 for closed positions).
Total cash profit/loss realized from this position.
Total tokens bought for this position.
Realized profit/loss from closing the position.
Percentage profit/loss for this position.
Percentage realized profit/loss.
Current market price for this outcome token.
Whether this position can be redeemed.
Whether this position can be merged.
The market title/question.
URL-friendly market slug.
URL to the market icon image.
URL-friendly event slug.
The outcome name for this position (e.g., “Yes”, “No”, or candidate name).
The numeric index of this outcome.
The name of the opposite outcome.
The asset identifier for the opposite outcome.
Unix timestamp when the position was closed.
ISO 8601 date-time when the market closed.