GET /stream/kalshi/partner/coverage, using the same Market Data credential as the WebSocket. The response includes scope, ready, pending, inactive and retired lists, counts, as_of, cache age and the source generation. all_open_markets is explicitly false; a ready inventory does not prove that an individual quote is fresh. Check the stream status and quote timestamp too.
The default page contains up to 500 market tickers. Follow next_cursor with a signed, canonically encoded query until it is null. If the inventory changes between pages, HTTP409 asks you to restart pagination. HTTP503 means coverage cannot currently be verified; do not treat it as an empty universe. Retired contracts and pending markets must not be treated as live books.
Read native market metadata for exact open, close and settlement times. Re-read coverage to discover replacement tickers when short-duration contracts close; subscribing to one ticker does not subscribe you to its replacements.
Check access first
Use an active Market Data credential withstream.read, an eligible paid plan and an explicit Kalshi data grant. A Data REST key is a different credential class. Keep the secret on your server.
Before connecting, make a signed GET /stream/capabilities. The kalshi row must have implemented, upstream_registered and entitled set to true. Then connect to wss://partner-api.bravadotrade.com/stream/kalshi/partner. Availability is still per market: inspect stream status and wait for a snapshot before using a book.
Server example
Installws, set BRAVADO_API_KEY and BRAVADO_API_SECRET, and run this as a Node.js .mjs file. The example discovers a ready market, subscribes to it and closes after 30 seconds to bound usage.
Node.js
book:, not an outcome token ID. You can request multiple ready tickers on one connection, within your account limits. Authentication helpers cover signing; the shared WebSocket guide covers subscription commands, reconnection and credits. This example is server-side; never put its HMAC secret in browser code.
Use the book safely
- Prices and sizes are decimal strings, including fractional quantities. Preserve them with exact decimal arithmetic.
- Both
snapshotanddeltacarry completebidsandasks. Replace your previous sides; do not add these quantities as increments. Empty or one-sided books can be valid. seqis a Bravado sequence per asset. A snapshot starts a new book state. A missing or unexpected sequence means you must stop using that state and reconnect for a new snapshot.quote.sourceWallUtcis the source’s receive time;quote.venueTsis the venue timestamp when present. Sending-clock fields remain separate.tsis the API timestamp, not the age of the quote. Protocol pings keep the connection alive without making a quiet quote newer.- On
degraded, discard trust in the book. A laterlivestatus or open socket alone does not restore it: wait for a fresh snapshot. Reconnect with a fresh signature and backoff after a disconnection.
Native trades and lifecycle
These are separate authenticated WebSocket connections:
Use the same eligible Market Data WebSocket credential and
stream.read scope as the book feed. Sign each connection’s exact GET path with an empty body and a fresh HMAC timestamp. A signature for /trades does not authenticate /lifecycle. A REST Data key or trading key is not a substitute.
Check signed GET /stream/capabilities first. The Kalshi row must advertise the requested trades_path or lifecycle_path, alongside implemented, upstream_registered and entitled. It also identifies trades_wire_format: "kalshi_native_event_v1", native_events_ring_only: true and native_events_historical_replay: false. An advertised path confirms access and configuration; it does not establish a healthy feed. Inspect the channel’s current health after connecting.
The native source subscribes to Kalshi’s global trade, market_lifecycle_v2 and multivariate_market_lifecycle channels. Trades are routed to /trades; both lifecycle subscriptions are routed to /lifecycle. This scope is independent of selected book coverage: a trade or lifecycle message for a ticker does not mean its order book is available through Bravado. These are native public-market messages, not portfolio fills or order-placement APIs.
Credentials and permissions apply to the environment in which they were issued. Use the credentials and environment limits agreed for your organisation; access in production does not automatically provision staging, additional keys or another organisation.
Frame types
All three frame types carryvenue: "kalshi", channel: "trades" or "lifecycle", ring_only: true, historical_replay: false and cursor_domain: "source_global_across_channels".
A snapshot’s recent events may overlap observations you already received. The ring holds at most 256 events and 4 MiB across the source channels; it is not a time-based retention promise. A newly connected API process may initially return a degraded snapshot while it connects to the source.
Each event preserves Kalshi’s native fields under
event.native, including its type and msg. JSON whitespace and transport framing are not a byte-for-byte copy of the captured message. Lifecycle frames can include native event lifecycle or fee-update messages as well as market updates. Bravado adds:
Read Kalshi’s own clocks from the preserved native fields when supplied. Some native message types do not provide an exchange timestamp. Keep it unknown in that case; do not present
received_at as exchange time. Preserve decimal strings and any native JSON numeric tokens exactly. JavaScript’s ordinary JSON.parse can round large integers or high-precision numeric tokens; use a lossless parser when processing them. Python’s json.loads(raw, parse_float=Decimal, parse_int=int) is one option for exact numeric parsing.
Health and reconnects
Treatdegraded, resyncing or stopped health as a reason to pause decisions that depend on a current feed. A quiet market is not a dead connection: inspect channel health separately from the time of its last trade. live reports source subscription health, not a promise that an individual market traded recently.
Native event cursors are global across channels. A consumer of /trades alone can see skipped positions because intervening lifecycle events went to the other route. Do not apply the book feed’s per-asset seq + 1 rule to these cursors. Preserve the source domain, subscription sequence metadata, status transitions and your own receive time when assessing continuity.
After a disconnect, sign a new connection and reconnect with backoff. The new snapshot contains only the retained live ring. These routes reject query parameters, including historical cursors, with HTTP 400. They cannot recover an arbitrary offline interval and are not a durable settlement log. If your application missed an event, reconcile current market/result state through native REST data; that read does not reconstruct every intermediate status change.
Server example for native events
Installws, save the signing helper as bravado-auth.mjs, and place this example beside it. Set your Market Data WebSocket key and secret only on the server. The example checks capabilities and prints original text frames for 30 seconds without parsing their native numbers.
Node.js