Kalshi 歷史數據 API: 1.14 億筆 yes/no 盤口,每側最多 100 檔

Kalshi 是受 CFTC 監管的美國交易所,官方不提供歷史訂單簿。我們以連續全深度輪詢留存 55 萬+ 個加密市場、1.14 億筆 yes/no 盤口快照——台港用戶就算不能在當地交易,也能完整分析與回測這份數據。

唯有建立在真實深度上,回測才誠實。 中間價隱藏了價差、每一檔位掛單的數量,以及你的訂單實際要付出的滑點。DepthFeed 完整保留整本委託簿。

PolymarketKalshiNasdaqNYSEBinanceChainlinkPolymarketKalshiNasdaqNYSEBinanceChainlink
1.5B
已捕捉是/否書籍
2.6M+
市場
100
深度層級
REST
擷取方法
回測實驗室

Find out whether an idea has an edge, no pipeline needed. The Backtest Lab runs the whole test in the browser, on the real recorded book.

模擬交易

回測是對過去的聲明。 Paper trading tests it on markets still to come: virtual cash, real prices, a record you cannot fake.

大多數資訊源在最後成交價停止。

A single number. It says nothing about the size waiting to fill.

我們捕捉每個層級,雙側皆有。

The full bid and ask ladder, with the size resting at every price.

每次變動都被記錄,永久保存。

Every frame stored, so a backtest fills against the liquidity that was really there.

This is where DepthFeed comes in.

完整委託簿,而不只是最後成交價。

The full book, every level, both sides

  • Every level, with size
  • Both sides of the book
  • Captured at every change

Polled at full depth, continuously

  • Public REST orderbook
  • Continuous full-depth polls
  • Finer than hourly archives

One REST API for latest and history

  • Latest and past snapshots
  • JSON, epoch-millis stamps
  • Keyset pagination

Underlying prices, time-aligned

  • Binance spot and futures
  • Chainlink settlement marks
  • Joined on epoch millis
02數據

Polymarket 與 Kalshi 委託簿及價格數據。

如此細緻的深度記錄成本高昂、且無法事後回填,所以幾乎沒人保留。我們做到了——橫跨 Polymarket、Kalshi 與 Limitless 的完整委託簿與價格數據,買賣雙邊每一檔位,逐筆捕捉,並透過計量計費的 API 乾淨地提供。

每一檔位,雙邊俱全

不是最後一筆成交、也不是盤口頂端——而是完整的買賣盤階梯,含每一檔位的掛單量,於每次變動時捕捉。這才是真實訂單實際成交時面對的深度。

三個平台,單一結構

Polymarket、Kalshi 與 Limitless 統一在單一、穩定的 JSON 結構中——Polymarket 與 Limitless 採事件驅動捕捉,Kalshi 採持續完整深度輪詢,各自對接一條高頻標的價格。

無法回填的歷史

委託簿深度只能往前記錄——錯過即永遠消失。我們自 early 2026 起持續記錄,所以你的方案買到的時間範圍,背後是已儲存的數據,而非一紙承諾。

03我們如何捕捉

真實的 Kalshi 深度,實測得出——而非宣傳手冊上的數字。

DepthFeed 是一個獨立專案(與各交易平台無任何關聯),其存在的目的就是記錄那本幾乎沒人保留的 Kalshi 委託簿。下方每一個數字都直接來自我們自家的即時捕捉,因此你能在真實流動性上回測,並用同一份數據交易。

170M
已捕捉是/否書籍

自 2026 年 1 月起

900K+
不同市場

Kalshi 加密貨幣市場

100
每側層級數

完整 REST 訂單簿

7
資產

BTC · ETH · SOL · XRP · DOGE · BNB · HYPE

直接量測自 DepthFeed 的即時捕捉,June 21, 2026。

一筆真實捕捉的快照

有買入盤無買入盤(p = 是的報價,1 − p 無買入盤)0.326,6450.311,1290.301,0250.291,5350.67635.10.661,3510.652,6450.642,310
每個價位的待成交量 — KXBTC15M-26JUN211530 (Kalshi)。柱長與大小成正比。

如何捕捉

  • 以節奏進行 Kalshi 公共 REST 委託簿請求,每側最多 100 層;實現的頻率會根據活躍市場負載和上游配額變化。
  • 歷史查詢 ASOF 與最近的 Binance 參考時間對齊;若無匹配則為 null。
  • 存檔範圍為前瞻性且系列特定;文件發布存儲的日期底線。
04涵蓋範圍

Kalshi 涵蓋範圍,隨需求持續成長。

我們收集 Kalshi 的加密貨幣系列,並附完整的 yes/no 委託簿——這正是短天期、以履約價為基礎的合約所交易的深度。

資產
BTCETHSOLXRPDOGEBNBHYPE
合約
15-minuteHourlyDaily
05快速上手

從金鑰到回測,只需幾分鐘。

呼叫 REST API 即可探索即時市場並拉取完整的歷史委託簿。乾淨的 JSON、epoch-millis 時間戳、keyset 分頁——無需爬蟲。

  • 穩定的 JSON 結構
  • 每筆快照附接收時間戳
  • keyset 分頁,依方案設限
kalshi_quickstart.py
# Full-depth Kalshi book — REST API, Bearer key
import requests

H = {"Authorization": f"Bearer {KEY}"}
b = requests.get(
    "https://api.depthfeed.com/v3/kalshi/KXBTCD-26JUN05/orderbook/latest",
    headers=H,
).json()["data"]

best_yes = b["yes_prices"][0]   # full ladder in yes_prices[]
best_no  = b["no_prices"][0]
print(b["recv_ts_ms"], best_yes, best_no, b["yes_sizes"][0])

# Tickers (KXBTCD / KXETHD / KXSOLD) come from /v3/kalshi/markets.

Kalshi 的 yes/no 盤口要怎麼讀,數據又從哪來

yes/no 盤口深度 vs 最後價

Kalshi 是 yes/no 合約,計價區間 0.01 到 0.99,一張 p 價的 yes 買單,等同 1 減 p 的 no 賣單——看懂這層對稱,才能正確還原雙邊機率。我們的全深度擷取每側最多保留 100 檔報價,遠不只一個最後成交價,讓你看清整本簿子的厚薄。

連續全深度輪詢

與 Polymarket 的事件驅動不同,Kalshi 採連續全深度 REST 輪詢,約每 1.5 秒一輪,每側最多 100 檔。至今累積 1.14 億筆 yes/no 盤口快照、橫跨 55 萬+ 個不同加密市場,2026 年 3 月起留存。視窗涵蓋 15 分鐘、每小時、每日、每週。

歷史與即時,同一種格式

REST API(Bearer 金鑰、keyset 分頁)取歷史,WebSocket 串流(wss://api.depthfeed.com/v3/stream)接即時,兩者輸出「完全相同」的 JSON 快照——同一份程式碼既能回測也能跑即時。每筆都附 yes/no 價格與掛單量陣列、交易所與接收時間戳(epoch 毫秒),以及 ASOF 對齊的 Binance 現貨/期貨參考價。

06定價

簡單的方案。無需信用卡即可開始。

Explorer

$0免費,無需信用卡

Verify the schema and replay a real sample before you pay.

  • 7 days · latest BTC markets, capped
  • Stock, ETF & crypto price bars · 3 symbols per request
  • Recorded bid/ask depth through the production REST schema
  • Sports discovery for Polymarket + Kalshi
  • 1 live BTC stream
  • Backtest Lab + 1 paper strategy

Quant

$29每月

Build across every venue with complete depth and live data.

  • 30 days · all assets · every supported venue
  • Stock, ETF & crypto price bars · 8 symbols per request
  • Full book depth at any snapshot interval
  • 25 req/sec · 5 live streams
  • Sports API, injury alerts + 1 live sports book
  • Backtest Lab + 5 paper strategies

Research

Free trial
$99每月

Test robustness and export evidence you can reproduce.

  • Quant 中的所有內容
  • Stock, ETF & crypto price bars · 16 symbols per request
  • 90 days of unified history (3× Quant)
  • Out-of-sample robustness analysis
  • Reproducible strategy, trade and run exports
  • 50 req/sec · 25 live streams · 15 paper strategies

Desk

$249每月

Run full-archive research on an isolated historical lane.

  • Research 中的所有內容
  • Stock, ETF & crypto price bars · 32 symbols per request
  • Raw tick tape: every book change, in venue sequence
  • Full market + sports archive
  • Historical queries use an isolated traffic lane
  • 100 req/sec · 100 live streams + wildcards
  • 2 parallel history queries · 40 paper strategies

Every paid plan

Complete data access; capacity scales with the tier.

  • Every supported venue
  • Crypto, stocks & prediction markets
  • Full bid/ask depth
  • Any snapshot interval: 1m, 5m, 1h…
  • Backtest Lab + live WebSocket
Compare exact plan limitsHistory, throughput, streams, research tools and account allowances.
CapabilityExplorer$0Quant$29Research$99Desk$249
DataHistory7 days, capped30 days90 daysFull archive
Order-book assetsAll 7All 7All 7All 7
Raw tick tape (/v3/**/ticks)———Included
Price bars — equities, ETFs & crypto1-minute, windowed1-minute base1-minute base1-minute base
Bar symbols per request381632
Venue access (prediction markets)Recorded sample + sports RESTEvery venueEvery venueEvery venue
DeliveryGeneral REST admission1 req/sec25 req/sec · 1,000/min50 req/sec · 3,000/min100 req/sec · 6,000/min
Live book streams1 BTC subscription5 subs · 1 connection25 subs · 2 connections100 subs · 5 connections + wildcards
Live sports booksREST only123
ResearchBacktest Lab — prediction marketsPolymarket samplePolymarket + KalshiPolymarket + KalshiPolymarket + Kalshi
Backtest Lab — stocks, ETFs & cryptoIncluded, within the 7-day windowIncludedIncludedIncluded
Robustness analysis——Out-of-sample Research LabIncluded
Concurrent paper strategies151540
Wallet Intelligence1 wallet · 3 audits5 wallets · 10 audits10 wallets · 25 audits20 wallets · 50 audits
Monthly AI execution credits—2001,0003,000
OperationsHistorical query laneSharedSharedSharedIsolated · 2 parallel requests

Monthly billing in USD. Cancel anytime. Taxes, where required, are calculated before payment. An entirely unused paid plan can be canceled and refunded in full under the Terms.

AI credits cover model execution only. Data access, history, exports, API limits, streams and venues never consume them.

問題,一一解答。

Kalshi 是受美國 CFTC 監管的預測市場交易所,提供 yes/no 合約,計價區間 0.01 到 0.99。我們是獨立研究專案,只提供其市場數據,與 Kalshi 並無從屬或背書關係。

開始在真實深度上回測 Kalshi。