Order book history
There is no single GET /v1/orderbook in the current OpenAPI. Use one of the following:
| Approach | Endpoint | Notes |
|---|---|---|
| Unified | GET /v1/snapshots | Pass source, symbol, optional market_id. Set include_orderbook=true (Polymarket / Kalshi). |
| Polymarket | GET /v1/polymarket/orderbook | Same idea as GET /v1/snapshots?source=polymarket with order book fields. See Platform routes. |
| Kalshi | GET /v1/kalshi/orderbook | Kalshi-specific order book snapshots; optional include_diffs. |
Hyperliquid L2 history: GET /v1/hyperliquid/snapshots (and /at).
Polymarket example (/v1/polymarket/orderbook)
Parameters include symbol (required), optional start, end, depth, limit, after, include_diffs (see OpenAPI for limits).
import requests
resp = requests.get(
"https://kwery-api.com/v1/polymarket/orderbook",
headers={"X-API-Key": "YOUR_KEY"},
params={"symbol": "BTC", "depth": 10, "limit": 5},
)
print(resp.json())Query parameter alternative: Add api-key=YOUR_KEY to the URL for quick tests.
Pagination & auth
All list endpoints use cursor pagination where documented: pass after from meta.next_cursor. Authenticate with X-API-Key or api-key query — see Authentication.