https://data-api.polymarket.com/
Fetches current positions for a user(address)
Content-Type: "application/json"Accept: "application/json"### Request
/positions?user=0x6af75d4e4aaf700450efbac3708cce1665810ff1&sizeThreshold=50
Query params:
user: The address of the user in question. Required.market: The conditionId of the market in question. Supports multiple csv separated valuessizeThreshold: The minimum position size to be included in the response. Defaults to 1.0redeemable: Boolean flag, returns only positions that can be redeemed. Optional.mergeable: Boolean flag, returns only positions that can be merged. Optional.title: Filter by market title. Optionallimit: The max number of positions to return, defaults to 100, max 500.offset: The starting index for pagination, defaults to 0.sortBy: The sort criteria. Defaults to TOKENS if not provided.
Sort Criteria:
TOKENS: Sort by the size of the position in tokens. Aka To WinCURRENT: Sort by the current value of the position. Aka current valueINITIAL: Sort by the initial value of the position.CASHPNL: Sort by the cash pnl of the position.PERCENTPNL: Sort by the percent pnl of the position.TITLE: Sort by the title of the market.RESOLVING: Sort by when the position's market is resolving.PRICE: Sort by the current price of the position.