GET /v2/positions
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/polymarket/v2/positionsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeList positions for a user or a market, including the closed lifecycle via status.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
user | query | str | required | Wallet address of the user (lowercased) example: 0x3dfb153c197d4c19d3b31c1ecd2c7b6860eeabaf |
condition | query | str | optional | Market condition id (0x…) — v2 accepts condition/condition_id/conditionId example: 0x91ee95f2c889a81f3b22b642b3946d115aa5a0018320ea93612d7edae4cf5abe |
limit | query | int | optional | Page size (max 500 on gamma lists) default: 20example: 2 |
cursor | query | str | optional | Opaque keyset cursor from pagination.next_cursor — omit on the first page |
status | query | strOPEN | REDEEMABLE | REDEEMABLE_LOST | MERGEABLE | CLOSED | optional | Position lifecycle filter — OPEN (default), REDEEMABLE, REDEEMABLE_LOST, MERGEABLE, CLOSED example: OPEN |
event_id | query | str | optional | Comma-separated numeric event ids example: 1417289 |
title | query | str | optional | Case-insensitive market-title filter |
filter_type | query | str | optional | Amount filter mode (e.g. CASH, SHARES) |
filter_amount | query | float | optional | Minimum amount for filter_type |
include_archived | query | bool | optional | default: False |
sort_by | query | str | optional | Sort field accepted by the endpoint (see response_note) example: TIMESTAMP |
start | query | int | optional | Inclusive unix-seconds lower bound example: 1794900000 |
end | query | int | optional | Inclusive unix-seconds upper bound example: 1795028400 |
sort_direction | query | strASC | DESC | optional | Sort direction example: DESC |
Response
type: object
cursor key: next_cursor
pagination: cursor
sample: {
"data": "array[2]",
"pagination": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/polymarket/v2/positions?user=0x3dfb153c197d4c19d3b31c1ecd2c7b6860eeabaf&condition=0x91ee95f2c889a81f3b22b642b3946d115aa5a0018320ea93612d7edae4cf5abe&limit=2&status=OPEN&event_id=1417289&sort_by=TIMESTAMP&start=1794900000&end=1795028400&sort_direction=DESC"