Get market order book history
Get historical order book snapshots for market tokens.
This endpoint always returns order books for all tokens in the market. Use /v1/tokens/{token_id}/books for single-token queries.
Pagination limits:
- Default limit: 100 points per page
- Maximum limit: 200 points per page
- Use cursor from metadata.next_cursor to fetch the next page
Aggregation: The last (most recent) order book in each interval is returned.
Format: JSON only.
Request
- Base URL: https://api.polymarketdata.co
- URL: https://api.polymarketdata.co/v1/markets/{id_or_slug}/books
- Auth: API key in header X-API-Key
Path parameters
Market ID or market slug.
Query parameters
Inclusive range start. Accepts ISO 8601 timestamp or Unix seconds.
Exclusive range end. Accepts ISO 8601 timestamp or Unix seconds.
Supported time resolutions for historical endpoints.
Aggregation bucket size.
Maximum number of points to return in this page. Default: 100, max: 200.
Opaque cursor from a previous response metadata.next_cursor.
Response
Historical order book snapshots for all market tokens.
Example response
{
"data": {
"No": [
{
"asks": [
[
0.29,
133
],
[
0.3,
281
]
],
"bids": [
[
0.28,
142
],
[
0.27,
298
]
],
"t": "2025-09-05T10:00:00Z"
}
],
"Yes": [
{
"asks": [
[
0.73,
140
],
[
0.74,
300
]
],
"bids": [
[
0.72,
150
],
[
0.71,
320
]
],
"t": "2025-09-05T10:00:00Z"
}
]
},
"market_id": "618831",
"metadata": {
"count": 2,
"limit": 100
},
"resolution": "1h",
"tokens": {
"No": "12346",
"Yes": "12345"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.