Get a Kalshi order book
Get the order book of a Kalshi market: resting Yes and No bids by price with their sizes, plus the best bid and ask on each side. Kalshi books hold bids only; a Yes ask is one dollar minus the best No bid.
/v1/kalshi/orderbookx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Market ticker.
KXWC-30-ESPPrice levels per side, 1–100; 0 or omitted returns every level.
10Request correlation UUID.
Upstream requests, decoded response bytes and elapsed milliseconds.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
True when usable data is returned; inspect status and coverage for omissions.
success, partial, failed or challenged. HTTP 200 can be partial.
one of: success, partial
Kalshi public API URL the data was read from.
absolute HTTPS URL
UTC retrieval time.
complete is false when a warning names an omission. order states the record order.
Always included.
Always included.
Always included.
Market ticker.
Kalshi’s book: yes_dollars and no_dollars, each a list of [price in dollars, size in contracts] bids in ascending price order, so the best bid is last. Empty lists when no bids rest.
Always included.
up to 10000 items
Always included.
up to 10000 items
Highest Yes bid, or null when there is none.
Lowest Yes ask (1 minus the highest No bid), or null.
Highest No bid, or null.
Lowest No ask (1 minus the highest Yes bid), or null.
No fields match.
HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with market_limit, metadata_unavailable, candle_limit, window_truncated, comment_limit or metrics_unavailable warnings. |
| 400 | invalid_request | Missing, duplicate, malformed or unsupported parameters, a link outside kalshi.com/markets, a price-history window above its period limit, or parameters Kalshi rejected. |
| 401 | unauthorized | Missing or invalid worker API key. |
| 404 | not_found | Unknown market, event, series, post or trader. |
| 429 | upstream_rate_limited | Kalshi rate limited the request. |
| 502 | upstream_challenged | Kalshi refused the public request. |
| 502 | unsupported_page | Malformed, mismatched or non-JSON source data. |
| 502 | response_too_large payload_too_complex | Response exceeded byte or parsing limits. |
| 502 | unsafe_redirect request_limit upstream_error | Bounded source retrieval could not complete. |
| 503 | busy | All worker slots and the waiting queue are occupied. |
| 504 | timeout | Total request deadline expired. |