Polymarket — Get order books (request body)
Retrieve order book summaries for multiple token IDs using a request body with the Polymarket API. The sample response includes hashes and prices. Monitor market conditions in a trading research dashboard. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Polymarket — Get order books (request body)
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
responseobject[]asksobject[]pricestringsizestring
asset_idstringbidsobject[]pricestringsizestring
hashstringlast_trade_pricestringmarketstringmin_order_sizestringneg_riskbooleantick_sizestringtimestampstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = Array<{
asks?: Array<{
price?: string;
size?: string;
}>;
asset_id?: string;
bids?: Array<{
price?: string;
size?: string;
}>;
hash?: string;
last_trade_price?: string;
market?: string;
min_order_size?: string;
neg_risk?: boolean;
tick_size?: string;
timestamp?: string;
}>;Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
PolymarketCurrent Polymarket — Get order books (request body) · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
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: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/polymarket/books- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/polymarket/books' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
}
]'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | Get order books (request body) — complete native JSON request body.Nested fields and variants
Nested fields and variants
|
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.
[
{
"asks": [
{
"price": "0.99",
"size": "28732.59"
},
{
"price": "0.98",
"size": "17411.76"
},
{
"price": "0.97",
"size": "375601.39"
},
{
"price": "0.96",
"size": "300000"
},
{
"price": "0.95",
"size": "74110.18"
},
{
"price": "0.94",
"size": "562535.46"
},
{
"price": "0.93",
"size": "13328.05"
},
{
"price": "0.92",
"size": "44677.45"
},
{
"price": "0.91",
"size": "12701.25"
},
{
"price": "0.9",
"size": "5147.69"
},
{
"price": "0.89",
"size": "30472.42"
},
{
"price": "0.88",
"size": "227222"
},
{
"price": "0.87",
"size": "20661"
},
{
"price": "0.86",
"size": "22857.13"
},
{
"price": "0.85",
"size": "6025.4"
},
{
"price": "0.84",
"size": "5.28"
},
{
"price": "0.83",
"size": "15529.17"
},
{
"price": "0.82",
"size": "5000"
},
{
"price": "0.81",
"size": "5684.21"
},
{
"price": "0.8",
"size": "229239.41"
},
{
"price": "0.79",
"size": "17100"
},
{
"price": "0.78",
"size": "11463.36"
},
{
"price": "0.77",
"size": "9782.6"
},
{
"price": "0.76",
"size": "5514.16"
},
{
"price": "0.75",
"size": "9284.25"
},
{
"price": "0.74",
"size": "8856.15"
},
{
"price": "0.73",
"size": "5394.11"
},
{
"price": "0.72",
"size": "8695.19"
},
{
"price": "0.71",
"size": "8448.28"
},
{
"price": "0.7",
"size": "3802.03"
},
{
"price": "0.69",
"size": "10"
},
{
"price": "0.68",
"size": "2555"
},
{
"price": "0.67",
"size": "2710"
},
{
"price": "0.66",
"size": "10"
},
{
"price": "0.65",
"size": "683.76"
},
{
"price": "0.64",
"size": "10"
},
{
"price": "0.63",
"size": "10097"
},
{
"price": "0.62",
"size": "12303.55"
},
{
"price": "0.61",
"size": "10395"
},
{
"price": "0.6",
"size": "13110"
},
{
"price": "0.59",
"size": "56298.99"
},
{
"price": "0.58",
"size": "13952.41"
},
{
"price": "0.57",
"size": "10223.69"
},
{
"price": "0.56",
"size": "26729.68"
},
{
"price": "0.55",
"size": "25942.55"
},
{
"price": "0.54",
"size": "12956.24"
},
{
"price": "0.53",
"size": "32305.6"
},
{
"price": "0.52",
"size": "15386.93"
},
{
"price": "0.51",
"size": "18626"
},
{
"price": "0.5",
"size": "3252.5"
},
{
"price": "0.49",
"size": "1366.56"
},
{
"price": "0.48",
"size": "134973.7"
},
{
"price": "0.47",
"size": "21875.83"
},
{
"price": "0.46",
"size": "11250.75"
}
],
"asset_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548",
"bids": [
{
"price": "0.01",
"size": "35283.73"
},
{
"price": "0.02",
"size": "94439.99"
},
{
"price": "0.03",
"size": "77477.5"
},
{
"price": "0.04",
"size": "950"
},
{
"price": "0.05",
"size": "73780"
},
{
"price": "0.06",
"size": "115110.66"
},
{
"price": "0.07",
"size": "47554.28"
},
{
"price": "0.08",
"size": "558"
},
{
"price": "0.09",
"size": "36005.32"
},
{
"price": "0.1",
"size": "2454"
},
{
"price": "0.11",
"size": "30185.18"
},
{
"price": "0.12",
"size": "12010.98"
},
{
"price": "0.13",
"size": "169518.28"
},
{
"price": "0.14",
"size": "19109.85"
},
{
"price": "0.15",
"size": "16227.59"
},
{
"price": "0.16",
"size": "42645.9"
},
{
"price": "0.17",
"size": "16303.41"
},
{
"price": "0.18",
"size": "5977.66"
},
{
"price": "0.19",
"size": "4966.95"
},
{
"price": "0.2",
"size": "11558.22"
},
{
"price": "0.21",
"size": "8176.3"
},
{
"price": "0.22",
"size": "55651.22"
},
{
"price": "0.23",
"size": "5987.46"
},
{
"price": "0.24",
"size": "2561"
},
{
"price": "0.25",
"size": "2623.72"
},
{
"price": "0.26",
"size": "2211"
},
{
"price": "0.27",
"size": "875.76"
},
{
"price": "0.28",
"size": "77867.61"
},
{
"price": "0.29",
"size": "17991.31"
},
{
"price": "0.3",
"size": "2151.9"
},
{
"price": "0.31",
"size": "7229.63"
},
{
"price": "0.32",
"size": "630"
},
{
"price": "0.33",
"size": "86"
},
{
"price": "0.34",
"size": "4425"
},
{
"price": "0.35",
"size": "17609.12"
},
{
"price": "0.36",
"size": "7497"
},
{
"price": "0.37",
"size": "5308"
},
{
"price": "0.38",
"size": "1015.62"
},
{
"price": "0.39",
"size": "3275.28"
},
{
"price": "0.4",
"size": "10049.54"
},
{
"price": "0.41",
"size": "17016.06"
},
{
"price": "0.42",
"size": "80719.79"
},
{
"price": "0.43",
"size": "328151.89"
},
{
"price": "0.44",
"size": "37910.64"
},
{
"price": "0.45",
"size": "28351.64"
}
],
"hash": "fcc0242246598e405337260552c23d6b6f1062ea",
"last_trade_price": "0.540",
"market": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
"min_order_size": "5",
"neg_risk": true,
"tick_size": "0.01",
"timestamp": "1793282616664"
}
]Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Polymarket — Get order books (request body)
Retrieve order book summaries for multiple token IDs using a request body with the Polymarket API. The sample response includes hashes and prices. Monitor market conditions in a trading research dashboard. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — Get order books (request body): https://openany.si/markets/apis/capabilities/polymarket-get-order-books-request-body?offering=8f323875-421e-4f52-8bce-63f6c3fbb86d · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/polymarket-get-order-books-request-body
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/books
Price: $0 / call
Provider: Polymarket
Contract revision: 3
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/polymarket/books' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
}
]'
```
## API contract
```json
{
"resource_type": "api",
"name": "Polymarket — Get order books (request body)",
"endpoint": "https://api.openany.si/v1/agent-apis/polymarket/books",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Get order books (request body) — complete native JSON request body.",
"json_schema": {
"description": "Get order books (request body) — complete native JSON request body.",
"examples": [
[
{
"token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
}
]
],
"items": {
"properties": {
"side": {
"description": "Order side (optional, not used for midpoint calculation)",
"enum": [
"BUY",
"SELL"
],
"example": "BUY",
"type": "string"
},
"token_id": {
"description": "Token ID (asset ID)",
"example": "0xabc123def456...",
"type": "string"
}
},
"required": [
"token_id"
],
"type": "object"
},
"type": "array"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": [
{
"token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548"
}
],
"headers": {},
"path": {},
"query": {}
},
"response_body": [
{
"asks": [
{
"price": "0.99",
"size": "28732.59"
},
{
"price": "0.98",
"size": "17411.76"
},
{
"price": "0.97",
"size": "375601.39"
},
{
"price": "0.96",
"size": "300000"
},
{
"price": "0.95",
"size": "74110.18"
},
{
"price": "0.94",
"size": "562535.46"
},
{
"price": "0.93",
"size": "13328.05"
},
{
"price": "0.92",
"size": "44677.45"
},
{
"price": "0.91",
"size": "12701.25"
},
{
"price": "0.9",
"size": "5147.69"
},
{
"price": "0.89",
"size": "30472.42"
},
{
"price": "0.88",
"size": "227222"
},
{
"price": "0.87",
"size": "20661"
},
{
"price": "0.86",
"size": "22857.13"
},
{
"price": "0.85",
"size": "6025.4"
},
{
"price": "0.84",
"size": "5.28"
},
{
"price": "0.83",
"size": "15529.17"
},
{
"price": "0.82",
"size": "5000"
},
{
"price": "0.81",
"size": "5684.21"
},
{
"price": "0.8",
"size": "229239.41"
},
{
"price": "0.79",
"size": "17100"
},
{
"price": "0.78",
"size": "11463.36"
},
{
"price": "0.77",
"size": "9782.6"
},
{
"price": "0.76",
"size": "5514.16"
},
{
"price": "0.75",
"size": "9284.25"
},
{
"price": "0.74",
"size": "8856.15"
},
{
"price": "0.73",
"size": "5394.11"
},
{
"price": "0.72",
"size": "8695.19"
},
{
"price": "0.71",
"size": "8448.28"
},
{
"price": "0.7",
"size": "3802.03"
},
{
"price": "0.69",
"size": "10"
},
{
"price": "0.68",
"size": "2555"
},
{
"price": "0.67",
"size": "2710"
},
{
"price": "0.66",
"size": "10"
},
{
"price": "0.65",
"size": "683.76"
},
{
"price": "0.64",
"size": "10"
},
{
"price": "0.63",
"size": "10097"
},
{
"price": "0.62",
"size": "12303.55"
},
{
"price": "0.61",
"size": "10395"
},
{
"price": "0.6",
"size": "13110"
},
{
"price": "0.59",
"size": "56298.99"
},
{
"price": "0.58",
"size": "13952.41"
},
{
"price": "0.57",
"size": "10223.69"
},
{
"price": "0.56",
"size": "26729.68"
},
{
"price": "0.55",
"size": "25942.55"
},
{
"price": "0.54",
"size": "12956.24"
},
{
"price": "0.53",
"size": "32305.6"
},
{
"price": "0.52",
"size": "15386.93"
},
{
"price": "0.51",
"size": "18626"
},
{
"price": "0.5",
"size": "3252.5"
},
{
"price": "0.49",
"size": "1366.56"
},
{
"price": "0.48",
"size": "134973.7"
},
{
"price": "0.47",
"size": "21875.83"
},
{
"price": "0.46",
"size": "11250.75"
}
],
"asset_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548",
"bids": [
{
"price": "0.01",
"size": "35283.73"
},
{
"price": "0.02",
"size": "94439.99"
},
{
"price": "0.03",
"size": "77477.5"
},
{
"price": "0.04",
"size": "950"
},
{
"price": "0.05",
"size": "73780"
},
{
"price": "0.06",
"size": "115110.66"
},
{
"price": "0.07",
"size": "47554.28"
},
{
"price": "0.08",
"size": "558"
},
{
"price": "0.09",
"size": "36005.32"
},
{
"price": "0.1",
"size": "2454"
},
{
"price": "0.11",
"size": "30185.18"
},
{
"price": "0.12",
"size": "12010.98"
},
{
"price": "0.13",
"size": "169518.28"
},
{
"price": "0.14",
"size": "19109.85"
},
{
"price": "0.15",
"size": "16227.59"
},
{
"price": "0.16",
"size": "42645.9"
},
{
"price": "0.17",
"size": "16303.41"
},
{
"price": "0.18",
"size": "5977.66"
},
{
"price": "0.19",
"size": "4966.95"
},
{
"price": "0.2",
"size": "11558.22"
},
{
"price": "0.21",
"size": "8176.3"
},
{
"price": "0.22",
"size": "55651.22"
},
{
"price": "0.23",
"size": "5987.46"
},
{
"price": "0.24",
"size": "2561"
},
{
"price": "0.25",
"size": "2623.72"
},
{
"price": "0.26",
"size": "2211"
},
{
"price": "0.27",
"size": "875.76"
},
{
"price": "0.28",
"size": "77867.61"
},
{
"price": "0.29",
"size": "17991.31"
},
{
"price": "0.3",
"size": "2151.9"
},
{
"price": "0.31",
"size": "7229.63"
},
{
"price": "0.32",
"size": "630"
},
{
"price": "0.33",
"size": "86"
},
{
"price": "0.34",
"size": "4425"
},
{
"price": "0.35",
"size": "17609.12"
},
{
"price": "0.36",
"size": "7497"
},
{
"price": "0.37",
"size": "5308"
},
{
"price": "0.38",
"size": "1015.62"
},
{
"price": "0.39",
"size": "3275.28"
},
{
"price": "0.4",
"size": "10049.54"
},
{
"price": "0.41",
"size": "17016.06"
},
{
"price": "0.42",
"size": "80719.79"
},
{
"price": "0.43",
"size": "328151.89"
},
{
"price": "0.44",
"size": "37910.64"
},
{
"price": "0.45",
"size": "28351.64"
}
],
"hash": "fcc0242246598e405337260552c23d6b6f1062ea",
"last_trade_price": "0.540",
"market": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
"min_order_size": "5",
"neg_risk": true,
"tick_size": "0.01",
"timestamp": "1793282616664"
}
]
}
]
}
```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 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Get order books (request body) — complete native JSON request body.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/polymarket/books' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '[ { "token_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548" } ]'Check the response
Sample response · Documented HTTP 200
Sample response[ { "asks": [ { "price": "0.99", "size": "28732.59" }, { "price": "0.98", "size": "17411.76" }, { "price": "0.97", "size": "375601.39" }, { "price": "0.96", "size": "300000" }, { "price": "0.95", "size": "74110.18" }, { "price": "0.94", "size": "562535.46" }, { "price": "0.93", "size": "13328.05" }, { "price": "0.92", "size": "44677.45" }, { "price": "0.91", "size": "12701.25" }, { "price": "0.9", "size": "5147.69" }, { "price": "0.89", "size": "30472.42" }, { "price": "0.88", "size": "227222" }, { "price": "0.87", "size": "20661" }, { "price": "0.86", "size": "22857.13" }, { "price": "0.85", "size": "6025.4" }, { "price": "0.84", "size": "5.28" }, { "price": "0.83", "size": "15529.17" }, { "price": "0.82", "size": "5000" }, { "price": "0.81", "size": "5684.21" }, { "price": "0.8", "size": "229239.41" }, { "price": "0.79", "size": "17100" }, { "price": "0.78", "size": "11463.36" }, { "price": "0.77", "size": "9782.6" }, { "price": "0.76", "size": "5514.16" }, { "price": "0.75", "size": "9284.25" }, { "price": "0.74", "size": "8856.15" }, { "price": "0.73", "size": "5394.11" }, { "price": "0.72", "size": "8695.19" }, { "price": "0.71", "size": "8448.28" }, { "price": "0.7", "size": "3802.03" }, { "price": "0.69", "size": "10" }, { "price": "0.68", "size": "2555" }, { "price": "0.67", "size": "2710" }, { "price": "0.66", "size": "10" }, { "price": "0.65", "size": "683.76" }, { "price": "0.64", "size": "10" }, { "price": "0.63", "size": "10097" }, { "price": "0.62", "size": "12303.55" }, { "price": "0.61", "size": "10395" }, { "price": "0.6", "size": "13110" }, { "price": "0.59", "size": "56298.99" }, { "price": "0.58", "size": "13952.41" }, { "price": "0.57", "size": "10223.69" }, { "price": "0.56", "size": "26729.68" }, { "price": "0.55", "size": "25942.55" }, { "price": "0.54", "size": "12956.24" }, { "price": "0.53", "size": "32305.6" }, { "price": "0.52", "size": "15386.93" }, { "price": "0.51", "size": "18626" }, { "price": "0.5", "size": "3252.5" }, { "price": "0.49", "size": "1366.56" }, { "price": "0.48", "size": "134973.7" }, { "price": "0.47", "size": "21875.83" }, { "price": "0.46", "size": "11250.75" } ], "asset_id": "20006732765674855733524007935991362439352594042415161039767275461950712817548", "bids": [ { "price": "0.01", "size": "35283.73" }, { "price": "0.02", "size": "94439.99" }, { "price": "0.03", "size": "77477.5" }, { "price": "0.04", "size": "950" }, { "price": "0.05", "size": "73780" }, { "price": "0.06", "size": "115110.66" }, { "price": "0.07", "size": "47554.28" }, { "price": "0.08", "size": "558" }, { "price": "0.09", "size": "36005.32" }, { "price": "0.1", "size": "2454" }, { "price": "0.11", "size": "30185.18" }, { "price": "0.12", "size": "12010.98" }, { "price": "0.13", "size": "169518.28" }, { "price": "0.14", "size": "19109.85" }, { "price": "0.15", "size": "16227.59" }, { "price": "0.16", "size": "42645.9" }, { "price": "0.17", "size": "16303.41" }, { "price": "0.18", "size": "5977.66" }, { "price": "0.19", "size": "4966.95" }, { "price": "0.2", "size": "11558.22" }, { "price": "0.21", "size": "8176.3" }, { "price": "0.22", "size": "55651.22" }, { "price": "0.23", "size": "5987.46" }, { "price": "0.24", "size": "2561" }, { "price": "0.25", "size": "2623.72" }, { "price": "0.26", "size": "2211" }, { "price": "0.27", "size": "875.76" }, { "price": "0.28", "size": "77867.61" }, { "price": "0.29", "size": "17991.31" }, { "price": "0.3", "size": "2151.9" }, { "price": "0.31", "size": "7229.63" }, { "price": "0.32", "size": "630" }, { "price": "0.33", "size": "86" }, { "price": "0.34", "size": "4425" }, { "price": "0.35", "size": "17609.12" }, { "price": "0.36", "size": "7497" }, { "price": "0.37", "size": "5308" }, { "price": "0.38", "size": "1015.62" }, { "price": "0.39", "size": "3275.28" }, { "price": "0.4", "size": "10049.54" }, { "price": "0.41", "size": "17016.06" }, { "price": "0.42", "size": "80719.79" }, { "price": "0.43", "size": "328151.89" }, { "price": "0.44", "size": "37910.64" }, { "price": "0.45", "size": "28351.64" } ], "hash": "fcc0242246598e405337260552c23d6b6f1062ea", "last_trade_price": "0.540", "market": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37", "min_order_size": "5", "neg_risk": true, "tick_size": "0.01", "timestamp": "1793282616664" } ]