Get Orderbook History
GET /polymarket/orderbooks
Note: All timestamps are in milliseconds. Orderbook data has history starting from October 14th, 2025. When fetching the latest orderbook (without start/end times), thelimitandpagination_keyparameters are ignored.
snapshots array containing orderbook snapshot objects, each with bids and asks arrays (containing size and price), along with metadata such as asset ID, timestamp, tick size, and market condition ID. A pagination object with has_more and pagination_key fields supports cursor-based pagination.Your AIsa API key as a Bearer token.
The token id (asset) for the Polymarket market
"56369772478534954338683665819559528414197495274302917800610633957542171787417"
Start time in Unix timestamp (milliseconds). Optional - if not provided along with end_time, returns the latest orderbook snapshot.
1760470000000
End time in Unix timestamp (milliseconds). Optional - if not provided along with start_time, returns the latest orderbook snapshot.
1760480000000
Maximum number of snapshots to return (default: 100, max: 200). Ignored when fetching the latest orderbook without start_time and end_time.
x <= 200100
Pagination key to get the next chunk of data. Ignored when fetching the latest orderbook without start_time and end_time.
"eyJhc3NldElkIjoiMTM1ODUxMjc2NDY0NTMxMDM0ODcyMjY1MTg3ODYyNjk5NjE0MDAyMjI5NzA0NzI3MzgxMTIwOTU1NDY0MDc5MTY4NDcxMTIyNzE2NjQiLCJ0aW1lc3RhbXAiOjE3NjExMDQwOTg5MTR9"