Core
Get closed positions for a user
Fetches closed positions for a user(address)
get/closed-positions
Request
- Base URL: https://data-api.polymarket.com
- URL: https://data-api.polymarket.com/closed-positions
- Auth: none declared
Query parameters
userstring required
User Profile Address (0x-prefixed, 40 hex chars)
Example:0x56687bf447db6ffa42ffe2204a05edaa20f55839
The address of the user in question
marketHash64[]
The conditionId of the market in question. Supports multiple csv separated values. Cannot be used with the eventId param.
[ "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917" ]
titlestring
Filter by market title
eventIdinteger[]
The event id of the event in question. Supports multiple csv separated values. Returns positions for all markets for those event ids. Cannot be used with the market param.
limitinteger
The max number of positions to return
offsetinteger
The starting index for pagination
sortBy'REALIZEDPNL' | 'TITLE' | 'PRICE' | 'AVGPRICE' | 'TIMESTAMP'
The sort criteria
sortDirection'ASC' | 'DESC'
The sort direction
Response
Success
Example response
[
{
"proxyWallet": "0x56687bf447db6ffa42ffe2204a05edaa20f55839",
"conditionId": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.