Polymarket Market Positions API
Returns the positions holders have in one Polymarket market, with each holder's wallet, share count, current value and PnL. The condition parameter takes the market's condition ID. You can also pass user to look at one wallet.
Use cases
- List the largest holders of one outcome in a market, sorted by
current_value.
- Check how much a large wallet has made or lost on a market through
realized_pnl, unrealized_pnl and total_pnl.
- Find the wallets that hold both sides of a market by comparing
outcome across rows.
- Track when large positions last changed by reading
last_event_at and filtering with start and end.
Request
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/market-positions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"condition": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b", "limit": 2}'
The result is returned in outputs[0].data.
Parameters
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"archived": false,
"avg_price": 0.0,
"condition_id": "0xc5eae79d1ffe716572353962eb926b1e3964c500a4880a7a94f58408218ee76b",
"current_price": 0.945,
"current_size": 6736573.9941,
"current_value": 6366062.4244,
"end_date": "2026-11-04",
"entry_cost_usdc": 0.0,
"entry_fees_usdc": 0.0,
"event_id": "32228",
"event_slug": "balance-of-power-2026-midterms",
"first_entry_at": 0
}
],
"pagination": {
"has_more": true,
"limit": 2,
"next_cursor": "eyJkYXRhIjp7InR5cGUiOiJwb3NpdGlvbnMiLCJwYXJhbXMiOnsibCI6MiwiZCI6MiwiayI6IjE0MjYz…",
"offset": 0
}
}
Response fields
Notes
- Get the condition ID from the
condition_id field of a market. Without user, condition accepts exactly one ID.
- Paginate by passing
pagination.next_cursor back as cursor while pagination.has_more is true. Re-send condition and title on every page.
status defaults to OPEN. Use sort_by and sort_direction to change the order.
- To see all markets for one wallet, call Polymarket Wallet Positions. For a list of holders per outcome token, use Polymarket Market Holders.
Pricing
$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.