Get closed positions
GET /api/v1/market-data/closed-positions
Returns a paginated list of historically closed outcome token positions for a wallet. Includes realised PnL, whether the position was a winner, claim/finalisation status, and early-resolution eligibility. When claimed=false (claimable snapshot), max limit is 500; otherwise max limit is 50.
Wallet address
Comma-separated market addresses to filter by
Comma-separated question IDs to filter by
Claim status filter. 'true' returns positions the user has already claimed. 'false' returns positions that still need claiming (finalised winning outcomes the user held to resolution but has not yet claimed). Omit to include all closed positions, including those exited by trading before finalisation.
Comma-separated question tags to exclude (case-insensitive; max 20)
Sort field: realized_pnl (default), finalised_at, closed_at
Sort ascending (default false = descending)
Limit (default 10; max 50, or max 500 when claimed=false)
Offset (default 0, max 100000)
OK
Bad Request
Internal Server Error
GET /api/v1/market-data/closed-positions?user=text HTTP/1.1
Host: rest.ft.42.space/
Accept: */*
{
"data": [
{
"avgPrice": 1,
"closedAt": "text",
"costBasis": 1,
"curPrice": 1,
"dispute": {
"deadlineAt": "text",
"isWindowOpen": true,
"latestResolveId": 1,
"resolvedAt": "text",
"viewerDisputeId": 1,
"windowHours": 1
},
"isClaimed": true,
"isFinalized": true,
"isWinner": true,
"market": {
"collateralDecimals": 1,
"startDate": "text",
"status": "text"
},
"marketAddress": "text",
"outcome": {
"image": "text",
"index": 1,
"mintedQuantity": 1,
"name": "text",
"payout": 1,
"symbol": "text"
},
"question": {
"description": "text",
"endDate": "text",
"image": "text",
"isEarlyResolutionEligible": true,
"questionId": "text",
"resolvedAnswer": "text",
"title": "text",
"winningOutcomes": "text"
},
"questionId": "text",
"realizedPnl": 1,
"size": 1,
"tokenId": "text",
"userAddress": "text"
}
],
"pagination": {
"hasMore": true,
"totalResults": 1
}
}Last updated