Blockrun Fetch all user positions with filtering and pagination API
Get Blockrun Fetch all user positions with filtering and pagination data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as limit, order, wallet, and retrieve structured data including continuation flag, reported count, result limit, returned pagination key field, and returned current field for market reference and account inspection, and integration reference.
- Selected price
- $0.0075 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Blockrun Fetch all user positions with filtering and pagination API
Prepare your request, then continue with your agent.
Selected price
$0.0075 / call
- Provider
- API
- Pricing
On this page
Overview
Blockrun Fetch all user positions with filtering and pagination API
Retrieve all user positions with filtering and pagination with the BlockRun API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: condition_id, limit, max_block, max_timestamp, min_block, min_timestamp, order, order_by, pagination_key, token_id, wallet |
| Selected implementation | blockrun · Prediction Markets and Derivatives — Fetch all user positions with filtering and pagination |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Market reference and account inspection: Keep market, asset and account identities distinct when interpreting records.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
pagination.has_more |
Continuation flag |
pagination.count |
Reported count |
pagination.limit |
Result limit |
pagination.pagination_key |
Returned pagination key field |
positions[].current |
Returned current field |
positions[].last_updated_at |
Returned last updated at field |
positions[].last_updated_block |
Returned last updated block field |
positions[].market |
Returned market field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
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'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
- Prediction Markets and Derivatives — Bulk identity lookup for up to 200 wallet addresses (POST body: {addresses: [..]})
- Prediction Markets and Derivatives — Get current UMA oracle status and event timeline for a single market
- Prediction Markets and Derivatives — Get historical orderbook snapshots for a token
Playground
Run sends a real API request. Charges follow the published API contract.
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 | 0 | —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: 5. 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
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.
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
Agent integration
Copy the resource contract without sharing an API key.
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" } ] }