default
Get closed positions for a user
Returns closed positions for a user.
<!-- aisa-pricing:start -->Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->get/apis/v1/polymarket/closed-positions
Request
- Base URL: https://api.aisa.one
- URL: https://api.aisa.one/apis/v1/polymarket/closed-positions
- Auth: none declared
Query parameters
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
marketstring[]
The conditionId of the market in question. Supports multiple csv separated values. Cannot be used with the eventId param.
[ "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917" ]
offsetinteger
The starting index for pagination
sortBy'REALIZEDPNL' | 'TITLE' | 'PRICE' | 'AVGPRICE' | 'TIMESTAMP'
The sort criteria
sortDirection'ASC' | 'DESC'
The sort direction
titlestring
Filter by market title
userstring required
User Profile Address (0x-prefixed, 40 hex chars)
Example:0x56687bf447db6ffa42ffe2204a05edaa20f55839
The address of the user in question
Response
Success
Example response
[
{
"conditionId": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917",
"proxyWallet": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
}
]Changes
No recorded changes to this operation across all 2 revisions of this API.