Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination
Retrieve all user positions with filtering and pagination with the BlockRun API. The sample response includes positions, prices and titles. Request fields include pagination key (pagination_key), result limit (limit), wallet address (wallet). Use it in financial research or market monitoring. The GET request schema also lists condition_id, max_block. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0.0075 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination
Prepare your request, then continue with your agent.
Selected price
$0.0075 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
paginationobjectcountintegerhas_morebooleanlimitintegerpagination_keystring
positionsobject[]currentobjectpricenumbervalue_usdnumber
last_updated_atintegerlast_updated_blockintegermarketobjectcondition_idstringmarket_slugstringsidestringside_labelstringstatusstringtitlestringtoken_idstring
pnlobjectrealized_usdintegerunrealized_pctnumberunrealized_usdnumber
positionobjectavg_entry_pricenumbernet_fees_usdnumbersharesnumbertotal_bought_usdnumbertotal_cost_usdnumbertotal_shares_boughtnumber
userstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
pagination?: {
count?: number;
has_more?: boolean;
limit?: number;
pagination_key?: string;
};
positions?: Array<{
current?: {
price?: number;
value_usd?: number;
};
last_updated_at?: number;
last_updated_block?: number;
market?: {
condition_id?: string;
market_slug?: string;
side?: string;
side_label?: string;
status?: string;
title?: string;
token_id?: string;
};
pnl?: {
realized_usd?: number;
unrealized_pct?: number;
unrealized_usd?: number;
};
position?: {
avg_entry_price?: number;
net_fees_usd?: number;
shares?: number;
total_bought_usd?: number;
total_cost_usd?: number;
total_shares_bought?: number;
};
user?: string;
}>;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
blockrunCurrent Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination · GET · View API reference | $0.0075 / call | — | —successP50— |
- Unit price
- $0.0075
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0.75
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions?limit=1&order=desc&wallet=0x2c335066fe58fe9237c3d3dc7b275c2a034a0563' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
condition_id | URL query parametersquery | string | null | No | Filter by market condition ID |
limit | URL query parametersquery | integer | No | Maximum positions per page (1-500) minimum: 1 · maximum: 500 |
max_block | URL query parametersquery | integer | null | No | Maximum block number (inclusive) minimum: 0 |
max_timestamp | URL query parametersquery | integer | null | No | Maximum timestamp in Unix seconds (inclusive) minimum: 0 |
min_block | URL query parametersquery | integer | null | No | Minimum block number (inclusive) minimum: 0 |
min_timestamp | URL query parametersquery | integer | null | No | Minimum timestamp in Unix seconds (inclusive) minimum: 0 |
order | URL query parametersquery | string | No | Sort order (desc for latest first, asc for streaming from oldest) enum: "asc", "desc" |
order_by | URL query parametersquery | string | No | Order by block number or timestamp enum: "block", "timestamp" |
pagination_key | URL query parametersquery | string | null | No | Cursor for pagination |
token_id | URL query parametersquery | string | null | No | Filter by token ID |
wallet | URL query parametersquery | string | null | No | Filter by wallet address |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"pagination": {
"count": 1,
"has_more": true,
"limit": 1,
"pagination_key": "eyJ1IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidCI6IjE1MjkwMzk2MTgwOTk4MTk4NzEwMzEwMjcyNzM2MTU1NjQwNDE5OTQzNDEzNzIxNDcwNjY0NDU0NjY1NDQyOTIyNDgzOTYyOTQ1Mzg0IiwiYiI6OTY0OTY3MTAsInNjb3BlIjp7Im9yZGVyX2J5IjoiYmxvY2siLCJvcmRlciI6ImRlc2MiLCJtaW5fYmxvY2siOm51bGwsIm1heF9ibG9jayI6bnVsbCwibWluX3RpbWVzdGFtcCI6bnVsbCwibWF4X3RpbWVzdGFtcCI6bnVsbCwid2FsbGV0IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidG9rZW5faWQiOm51bGwsImNvbmRpdGlvbl9pZCI6bnVsbH19"
},
"positions": [
{
"current": {
"price": 0.4211553406537838,
"value_usd": 1222.86243556892
},
"last_updated_at": 1793450521,
"last_updated_block": 96496710,
"market": {
"condition_id": "0x871c424db72644585e0791b16a865ff4c02118ea9673a00c5a2c7ecac785b582",
"market_slug": "epl-che-mun-2026-10-31-che",
"side": "YES",
"side_label": "Yes",
"status": "open",
"title": "Will Chelsea FC win on 2026-10-31?",
"token_id": "15290396180998198710310272736155640419943413721470664454665442922483962945384"
},
"pnl": {
"realized_usd": 0,
"unrealized_pct": -6.889752441576902,
"unrealized_usd": -90.48648964107997
},
"position": {
"avg_entry_price": 0.452319,
"net_fees_usd": 35.77222,
"shares": 2903.59,
"total_bought_usd": 1277.5796,
"total_cost_usd": 1313.34892521,
"total_shares_bought": 2903.59
},
"user": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563"
}
]
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination
Retrieve all user positions with filtering and pagination with the BlockRun API. The sample response includes positions, prices and titles. Request fields include pagination key (pagination_key), result limit (limit), wallet address (wallet). Use it in financial research or market monitoring. The GET request schema also lists condition_id, max_block. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
blockrun · Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination: https://openany.si/markets/apis/capabilities/blockrun-prediction-markets-and-derivatives-fetch-all-user-positions-with-filtering-and-paginati?offering=12192044-4951-48e0-984f-4f28f615ba9a · $0.0075 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/blockrun-prediction-markets-and-derivatives-fetch-all-user-positions-with-filtering-and-paginati
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions
Price: $0.0075 / call
Provider: blockrun
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions?limit=1&order=desc&wallet=0x2c335066fe58fe9237c3d3dc7b275c2a034a0563' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination",
"endpoint": "https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Filter by market condition ID",
"location": "query",
"name": "condition_id",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Maximum positions per page (1-500)",
"location": "query",
"maximum": "500",
"minimum": "1",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Maximum block number (inclusive)",
"location": "query",
"minimum": "0",
"name": "max_block",
"nullable": true,
"required": false,
"type": "integer"
},
{
"description": "Maximum timestamp in Unix seconds (inclusive)",
"location": "query",
"minimum": "0",
"name": "max_timestamp",
"nullable": true,
"required": false,
"type": "integer"
},
{
"description": "Minimum block number (inclusive)",
"location": "query",
"minimum": "0",
"name": "min_block",
"nullable": true,
"required": false,
"type": "integer"
},
{
"description": "Minimum timestamp in Unix seconds (inclusive)",
"location": "query",
"minimum": "0",
"name": "min_timestamp",
"nullable": true,
"required": false,
"type": "integer"
},
{
"description": "Sort order (desc for latest first, asc for streaming from oldest)",
"enum_values": [
"asc",
"desc"
],
"location": "query",
"name": "order",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Order by block number or timestamp",
"enum_values": [
"block",
"timestamp"
],
"location": "query",
"name": "order_by",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Cursor for pagination",
"location": "query",
"name": "pagination_key",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Filter by token ID",
"location": "query",
"name": "token_id",
"nullable": true,
"required": false,
"type": "string"
},
{
"description": "Filter by wallet address",
"location": "query",
"name": "wallet",
"nullable": true,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "7500",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"limit": 1,
"order": "desc",
"wallet": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563"
}
},
"response_body": {
"pagination": {
"count": 1,
"has_more": true,
"limit": 1,
"pagination_key": "eyJ1IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidCI6IjE1MjkwMzk2MTgwOTk4MTk4NzEwMzEwMjcyNzM2MTU1NjQwNDE5OTQzNDEzNzIxNDcwNjY0NDU0NjY1NDQyOTIyNDgzOTYyOTQ1Mzg0IiwiYiI6OTY0OTY3MTAsInNjb3BlIjp7Im9yZGVyX2J5IjoiYmxvY2siLCJvcmRlciI6ImRlc2MiLCJtaW5fYmxvY2siOm51bGwsIm1heF9ibG9jayI6bnVsbCwibWluX3RpbWVzdGFtcCI6bnVsbCwibWF4X3RpbWVzdGFtcCI6bnVsbCwid2FsbGV0IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidG9rZW5faWQiOm51bGwsImNvbmRpdGlvbl9pZCI6bnVsbH19"
},
"positions": [
{
"current": {
"price": 0.4211553406537838,
"value_usd": 1222.86243556892
},
"last_updated_at": 1793450521,
"last_updated_block": 96496710,
"market": {
"condition_id": "0x871c424db72644585e0791b16a865ff4c02118ea9673a00c5a2c7ecac785b582",
"market_slug": "epl-che-mun-2026-10-31-che",
"side": "YES",
"side_label": "Yes",
"status": "open",
"title": "Will Chelsea FC win on 2026-10-31?",
"token_id": "15290396180998198710310272736155640419943413721470664454665442922483962945384"
},
"pnl": {
"realized_usd": 0,
"unrealized_pct": -6.889752441576902,
"unrealized_usd": -90.48648964107997
},
"position": {
"avg_entry_price": 0.452319,
"net_fees_usd": 35.77222,
"shares": 2903.59,
"total_bought_usd": 1277.5796,
"total_cost_usd": 1313.34892521,
"total_shares_bought": 2903.59
},
"user": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563"
}
]
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 11
Review these request fields before running. Keep the published provider and request method unchanged.
condition_id- Filter by market condition ID
limit- Maximum positions per page (1-500)
max_block- Maximum block number (inclusive)
max_timestamp- Maximum timestamp in Unix seconds (inclusive)
min_block- Minimum block number (inclusive)
min_timestamp- Minimum timestamp in Unix seconds (inclusive)
order- Sort order (desc for latest first, asc for streaming from oldest)
order_by- Order by block number or timestamp
pagination_key- Cursor for pagination
token_id- Filter by token ID
wallet- Filter by wallet address
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/positions?limit=1&order=desc&wallet=0x2c335066fe58fe9237c3d3dc7b275c2a034a0563' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "pagination": { "count": 1, "has_more": true, "limit": 1, "pagination_key": "eyJ1IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidCI6IjE1MjkwMzk2MTgwOTk4MTk4NzEwMzEwMjcyNzM2MTU1NjQwNDE5OTQzNDEzNzIxNDcwNjY0NDU0NjY1NDQyOTIyNDgzOTYyOTQ1Mzg0IiwiYiI6OTY0OTY3MTAsInNjb3BlIjp7Im9yZGVyX2J5IjoiYmxvY2siLCJvcmRlciI6ImRlc2MiLCJtaW5fYmxvY2siOm51bGwsIm1heF9ibG9jayI6bnVsbCwibWluX3RpbWVzdGFtcCI6bnVsbCwibWF4X3RpbWVzdGFtcCI6bnVsbCwid2FsbGV0IjoiMHgyYzMzNTA2NmZlNThmZTkyMzdjM2QzZGM3YjI3NWMyYTAzNGEwNTYzIiwidG9rZW5faWQiOm51bGwsImNvbmRpdGlvbl9pZCI6bnVsbH19" }, "positions": [ { "current": { "price": 0.4211553406537838, "value_usd": 1222.86243556892 }, "last_updated_at": 1793450521, "last_updated_block": 96496710, "market": { "condition_id": "0x871c424db72644585e0791b16a865ff4c02118ea9673a00c5a2c7ecac785b582", "market_slug": "epl-che-mun-2026-10-31-che", "side": "YES", "side_label": "Yes", "status": "open", "title": "Will Chelsea FC win on 2026-10-31?", "token_id": "15290396180998198710310272736155640419943413721470664454665442922483962945384" }, "pnl": { "realized_usd": 0, "unrealized_pct": -6.889752441576902, "unrealized_usd": -90.48648964107997 }, "position": { "avg_entry_price": 0.452319, "net_fees_usd": 35.77222, "shares": 2903.59, "total_bought_usd": 1277.5796, "total_cost_usd": 1313.34892521, "total_shares_bought": 2903.59 }, "user": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563" } ] }