Skip to main content

Order book history

There is no single GET /v1/orderbook in the current OpenAPI. Use one of the following:

ApproachEndpointNotes
UnifiedGET /v1/snapshotsPass source, symbol, optional market_id. Set include_orderbook=true (Polymarket / Kalshi).
PolymarketGET /v1/polymarket/orderbookSame idea as GET /v1/snapshots?source=polymarket with order book fields. See Platform routes.
KalshiGET /v1/kalshi/orderbookKalshi-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.