Skip to content

Repository files navigation

Kalshi Price Data

The fastest way to get Kalshi historical data and live price data — yes/no contract prices, the full order book behind them, and a replayable historical series — through one aggregated API. This small Python client runs against DepthFeed and includes a keyless live overview.

DepthFeed — Kalshi price data API Kalshi order book history — 114M+ snapshots License: MIT

Which "Kalshi price data" do you mean? This is prediction-market price data — the yes/no price of a Kalshi market (e.g. "Will BTC be above $X at 4pm?"), read off the live order book. It is not the $KALSHI pre-IPO stock/token. If you want the market's own probability price, its depth, and its history, you're in the right place.


Installation and quickstart — get a Kalshi price in 6 lines

pip install -r requirements.txt
from kalshi_price_data import KalshiPriceData

k = KalshiPriceData()          # defaults to the DepthFeed aggregator
ov = k.overview()              # public endpoint — no key needed
print(ov)                      # live Kalshi (+ Polymarket + Limitless) prices

overview() hits https://api.depthfeed.com/v3/overview — a public endpoint, so the snippet runs as-is. For per-market Kalshi history and full yes/no depth, add a key.


Table of contents


What "Kalshi price data" actually is

Kalshi is a regulated exchange that runs a central limit order book on yes/no event contracts. Every market has a yes side and a no side; prices are quoted in cents from 1 to 99 (equivalently 01), and the price is the market-implied probability of the event.

So "Kalshi price data" is really two layers:

  1. The contract price — yes and no quoted 01. The honest live number is the best-bid/ask, and the two sides tie together: a yes bid at price p is a no offer at 1 − p, so the implied yes ask is 1 − the best no bid.
  2. The order book — the full ladder of resting yes and no orders ([price, size]). That's where depth, spread and liquidity actually live — not in a last-trade print.

Why the public API isn't enough

Kalshi's public endpoints are real and key-free for live data, but the history is the problem:

Live state is easy; continuous history is not. Kalshi's data is fragmented across endpoints — you must stitch trades, markets and order books together yourself — and order-book depth cannot be back-filled once it has streamed past.

You can read a market's book now, but reconstructing what the yes/no ladder looked like minute-by-minute last week means you needed to be recording it live, across hundreds of thousands of markets, without gaps. That's an infrastructure project, not an API call.

That's the gap an aggregator fills.


Live proof and data coverage

DepthFeed is the aggregator. It has already captured the full Kalshi yes/no order book — forward, continuously — into one queryable API, alongside two other venues. The figures below are measured from the live archive (June 2026), not estimates:

  • 114M+ order-book snapshots across 550,000+ Kalshi markets, back to March 2026.
  • Full yes/no L2 depth preserved. On BTC 15-minute markets the typical book is a one-cent spread, ~96 price levels per side (up to the full 100), ~156,000 contracts of resting depth.
  • Windows captured: 15-minute, hourly, daily and weekly — filterable by ?type= and ?coin=.
  • One endpoint, three venues — Kalshi + Polymarket + Limitless — the same "BTC up or down, next 15 min" question priced side-by-side. (Polymarket sister repo: polymarket-price-data.)
  • REST + WebSocket, cursor pagination, server-side downsampling, Parquet bulk export.

You don't run a collector. You call an endpoint.


Usage examples

The client defaults to the DepthFeed aggregator. Everything is testable against the live endpoints.

No key — try real data instantly

from kalshi_price_data import KalshiPriceData
k = KalshiPriceData()
k.overview()     # GET /v3/overview  (public) — live cross-venue prices (incl. Kalshi)
k.health()       # GET /v3/health    (public)

overview() returns live cross-venue market prices with no signup. It is the fastest way to verify connectivity before adding an API key for historical snapshots and full depth.

With a key — Kalshi markets, history, full yes/no depth

k = KalshiPriceData(api_key="YOUR_DEPTHFEED_KEY")

# List Kalshi BTC 15-minute markets
markets = k.markets(coin="btc", type="15m", limit=20)

# Latest order book for a ticker
book = k.orderbook_latest(markets[0]["ticker"])

# Historical yes/no depth for a ticker
snaps = k.snapshots(markets[0]["ticker"], limit=100)

Runnable scripts: examples/overview_no_key.py · examples/market_history.py.

Full endpoint reference: kalshipricedata.com/docs · API overview.

Grab an API key at kalshipricedata.com/price-data Plans: Free $0 (overview + Polymarket BTC) · Pro $29/mo (all 7 assets, all venues incl. Kalshi, 30-day history) · Scale $79/mo (90-day + Parquet bulk export). Kalshi coverage starts on Pro.


FAQ

Does Kalshi have a price API? Yes — Kalshi's public endpoints serve live market data without a key. For live plus continuous history and full yes/no depth pre-stitched in one place, use the DepthFeed aggregator (Kalshi coverage on the Pro plan).

How do I get historical Kalshi price data? Order-book depth can't be back-filled — it has to be recorded live across every market. DepthFeed holds 114M+ Kalshi snapshots back to March 2026; query one ticker's history with examples/market_history.py.

What do Kalshi prices mean? Yes and no contracts quoted 199¢ (01); the price is the implied probability. A yes bid at p is a no offer at 1 − p, so the implied yes ask is 1 − the best no bid.

Can I get Kalshi and Polymarket prices together? Yes — that's the point of an aggregator. One DepthFeed call returns the same market priced across Kalshi, Polymarket and Limitless. See polymarket-price-data.

How do I download Kalshi price data to CSV / Parquet? DepthFeed's Scale plan ships Parquet bulk export; the REST API returns JSON you can write to CSV directly.


Further reading


Contributions are welcome; see CONTRIBUTING.md. For product help, use DepthFeed support. Report vulnerabilities privately through SECURITY.md.

Independent open-source project. Not affiliated with Kalshi. Archive figures are measured from DepthFeed (a VCorp product). © 2026 VCorp. MIT licensed.

About

Kalshi historical data and price API: live yes/no prices, full order-book depth, WebSocket streaming, and a Python client powered by DepthFeed.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages