Kalshi

v0.3.1
io.github.pipeworx-io/kalshi Checked 2 days ago Published 1 month ago

Kalshi MCP — US-regulated prediction-market data (no auth on public reads).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kalshi_markets

List or search Kalshi prediction markets, open or already settled. Pass `keyword` to find markets by subject — "inflation", "Iran", "Vance" — served by Kalshi's own full-corpus search, with each result tagged match: market|event|related so you can tell a literal keyword hit from a relevance-ranked neighbor. A keyword search honours `status`, so status "settled" is how you find a RESOLVED market by subject (its `result` is the outcome) — Kalshi indexes settled markets separately and the open index does not contain them. Other filters: status (open|closed|settled|unopened), event_ticker (g…

ParameterTypeDescription
cursorstringPagination cursor from previous response
event_tickerstringFilter to one event (e.g. "KXFED-26OCT")
keywordstringSubject to search for, e.g. "inflation", "Iran", "Vance". Runs Kalshi's own search over the full market corpus, in the slice named by `status` — pass status "settled" to find markets that have alrea…
limitnumber1-1000 (default 100)
series_tickerstringFilter to one series (e.g. "KXFED" for Fed funds rate)
statusstringopen | closed | settled (default open)

kalshi_market

AUTHORITATIVE detail for one Kalshi market by ticker (e.g. "KXFED-26OCT-T3.50"), live OR long-settled — Kalshi drops older markets from its live endpoints (they 404 there), and this falls through to Kalshi's historical archive and says which answered in `source`. Returns the rules text (so you know exactly what the market settles on — critical before quoting odds), yes_ask + no_ask prices in cents, last_price, volume, open_interest, expiration date, settlement criteria. Use after kalshi_events / kalshi_event to drill into a specific market, or when you already have a Kalshi ticker. For dep…

ParameterTypeDescription
ticker *stringKalshi market ticker, e.g. "KXFED-26OCT-T3.50"

kalshi_events

List/browse Kalshi events (event = a question with one-or-more child markets, e.g. "Fed funds rate after Oct 2026 meeting?" with 11 markets, one per rate bucket). Filter by status (open / settled), series_ticker (KXFED, KXBTC, KXCPI, etc.), or category (Politics, Economics, Financials, Crypto, Climate and Weather, Sports, ...). Kalshi's own endpoint ignores a category filter, so we apply it over a bounded page scan and report events_scanned / scan_complete with the result — a category browse is filtered, not exhaustive. Use this as a discovery tool — to find what events Kalshi has open for…

ParameterTypeDescription
categorystringKalshi category, exact words: Politics | Elections | Economics | Financials | Crypto | Companies | Commodities | Climate and Weather | Science and Technology | Sports | Entertainment | World | Health…
cursorstringPagination cursor
limitnumber1-200 (default 100)
series_tickerstringe.g. "KXFED"
statusstringopen | closed | settled (default open)

kalshi_event

AUTHORITATIVE odds from Kalshi — the only CFTC-regulated US prediction-market exchange (US persons CAN legally trade here, unlike Polymarket). Returns one event with ALL its child markets nested: event title + each market's ticker, subtitle, price, volume. Use when you need the full partition for an outright bet ("Fed funds in June 2026: each rate level is one market"). Pass include_orderbook=true to fetch live top-of-book for each market (slower but populates yes_ask_cents/yes_bid_cents/no_ask_cents + implied_yes_prob — required for most macro events since the nested response leaves price…

ParameterTypeDescription
event_ticker *stringKalshi event ticker, e.g. "KXFED-26OCT"
include_orderbookbooleanDefault false. When true, fetches per-market orderbook in parallel and patches in best bid/ask + recomputed implied_yes_prob. Adds ~1s for events with ~10 markets. Required when the nested response re…

kalshi_series

List Kalshi series (a series groups related events over time — e.g. "KXFED" series has one event per FOMC meeting). Useful to find the canonical handle for recurring questions.

ParameterTypeDescription
categorystringPolitics | Economics | Climate | Sports | Science | World
limitnumber1-1000 (default 200)

kalshi_orderbook

Current YES/NO orderbook (bids + asks with size, in cents) for a market ticker. Use to see live liquidity depth before judging whether an edge is tradable. Returns sorted price/quantity levels.

ParameterTypeDescription
ticker *stringKalshi market ticker
depthnumberLevels to return per side (default 5, max 100)

kalshi_trades

Executed trades for a market ticker, live OR long-settled. Returns most-recent N trades with yes/no price in BOTH units (yes_price_cents and yes_price_dollars at full precision), contract size, taker side and timestamp. Useful for sanity-checking what the market actually paid vs the resting orderbook, and for reconstructing how a resolved market traded. Kalshi answers 200-with-an-empty-list on its live trades endpoint for markets it has archived, so this falls through to Kalshi's historical trade archive and reports which one answered in `source`.

ParameterTypeDescription
ticker *stringKalshi market ticker
limitnumber1-1000 (default 50)

kalshi_price_history

Historical price/probability time-series (candlesticks) for a Kalshi market — how the YES odds moved over time, for ANY window, including one that ended long ago. Pass a market ticker (e.g. "KXFEDDECISION-28JAN-H26") plus either an explicit start_ts/end_ts window ("what did this market think in March?") or lookback_days as sugar for a window ending now. Returns OHLC candles: YES price (open/high/low/close/mean as probability 0-1), best bid/ask, volume, and open interest per interval. Kalshi serves at most 5,000 candles per request; a window larger than that comes back as page 1 with `next_cu…

ParameterTypeDescription
cursorstringPass back `next_cursor` from a previous response to fetch the next slice of a window too large for one request (>5,000 candles). The cursor carries the ticker, interval and remaining window, so no oth…
end_tsstringWindow END — same formats as start_ts. Defaults to now when omitted.
intervalstring"1h" (hourly) | "1d" (daily, default) | "1m" (per-minute). Coarser intervals cover longer history per request.
lookback_daysnumberSugar for a window length in days (1-365, default 30). Anchors to start_ts if you gave one, to end_ts if you gave that, and to now if you gave neither. Ignored when both start_ts and end_ts are set.
start_tsstringWindow START — ISO date ("2026-03-01"), ISO datetime ("2026-03-01T00:00:00Z"), or unix seconds. Use with end_ts to ask about a window that does NOT end today.
tickerstringKalshi market ticker (e.g. "KXFEDDECISION-28JAN-H26"). The series is derived from the ticker automatically. Required unless you are passing `cursor`.

kalshi_exchange_status

Exchange-level status: is the trading floor open, are deposits/withdrawals enabled, any scheduled maintenance. Cheap check before a batch script.

kalshi_top_markets

Ranking / leaderboard of Kalshi's most-traded markets right now — use this for "what is the highest volume prediction market on Kalshi", "most traded Kalshi market", or any top-N-by-activity question. Kalshi's /markets endpoint has NO server-side sort and its raw listing is 99%+ algorithmically-generated multivariate combo markets with zero volume, so paging through it would surface junk. This instead discovers real, currently-active markets via Kalshi's own search/relevance index, then re-ranks the leaders using each market's authoritative live volume/price detail. Returns title, ticker, ev…

ParameterTypeDescription
bystringvolume (default, all-time contracts traded) | volume_24h | open_interest | liquidity
limitnumber1-50 (default 10)
statusstring"open" (default — only markets not yet past close_time) | "any" (include markets whose close_time has passed, still excludes settled/resulted ones)

kalshi_macro

Friendly-name shortcut for the most-asked Kalshi macro series: "Fed" (FOMC rate buckets), "BTC" (Bitcoin price ranges), "ETH" (Ethereum), "CPI" (monthly inflation), "GDP" (quarterly growth), "SP500" (S&P 500 EOY close), "Recession" (NBER recession calls). Returns the soonest-expiring open event for that series with all child markets + implied probabilities, so agents can ask about macro odds without knowing Kalshi's ticker scheme.

ParameterTypeDescription
topic *stringFed | BTC | ETH | CPI | GDP | SP500 | Recession

kalshi_orderbooks

Depth-of-book for UP TO 100 Kalshi markets in ONE call — Kalshi's own batch orderbook endpoint (`GET /markets/orderbooks`), not a fan-out we do for you. Use this instead of calling kalshi_orderbook once per ticker when you are pricing a whole event partition (an 11-bucket Fed event, a 20-strike temperature ladder) or screening several markets for liquidity: one request, one rate-limit slot. Returns per ticker: the full yes_bids / no_bids ladders (price in BOTH units — price_dollars at Kalshi's fixed-point precision and price_cents rounded — with quantity), plus best_yes_bid / best_no_bid…

ParameterTypeDescription
tickers *arrayMarket tickers, 1-100 (Kalshi's own per-request cap, e.g. ["KXHIGHNY-26SEP16-B75.5","KXHIGHNY-26SEP16-B77.5"]). A comma-separated string is accepted too. More than 100 is an explicit error, not a sile…
depthnumberLevels to keep per side, best-first (default 5, max 100). Kalshi returns the whole ladder; this trims the response. `levels_available` reports the untrimmed depth per side so you can tell a thin book…

kalshi_candlesticks

Price history (OHLC candles) for UP TO 100 Kalshi markets over ONE shared window, in ONE call — Kalshi's batch candlestick endpoint (`GET /markets/candlesticks`). This is the comparison tool: every bucket of a Fed or CPI event on one timeline, or the same question across several strikes, without the N separate calls kalshi_price_history would cost. Per candle: YES open/high/low/close/mean as a probability 0-1, best bid/ask close, volume and open interest. Kalshi caps the response at 10,000 candles ACROSS all markets combined — when the cap binds the response says `truncated_by_upstream: tr…

ParameterTypeDescription
tickers *arrayMarket tickers, 1-100 (e.g. ["KXHIGHNY-26SEP16-B75.5","KXHIGHNY-26SEP16-B77.5"]). A comma-separated string is accepted too.
end_tsstringWindow END — same formats. Defaults to now.
intervalstring"1h" (hourly, default) | "1d" (daily) | "1m" (per-minute). Kalshi accepts only these three; the 10,000-candle cap is shared across every ticker you ask for, so a per-minute window over 100 markets wil…
lookback_daysnumberSugar for a window ending now (1-365, default 1). Ignored when both start_ts and end_ts are given.
start_tsstringWindow START — ISO date ("2026-09-01"), ISO datetime, or unix seconds.

kalshi_event_live_data

The REAL-WORLD measurement an event settles against, next to the odds — Kalshi's event live-data feed (`GET /live_data/events/{event_ticker}`). This is the thing you cannot get by calling any other Kalshi endpoint: for a crypto event it is the underlying BTC/ETH price track from the settlement index (candlesticks + tick timeseries); for an economic event it is the actual published series the market resolves on (e.g. CPI CUUR0000SA0 from BLS, monthly, with its latest value and the target period); for other events it is whatever observation Kalshi charts behind the contract. The response's `ty…

ParameterTypeDescription
event_ticker *stringKalshi event ticker, e.g. "KXBTCD-26SEP1617" (crypto) or "KXUSCPIYEAR-37FEB01" (economic series).
max_pointsnumberNewest points to keep per series (default 200, max 2000). `points_total` always reports the untrimmed length.
rangestringChart-range hint passed straight to Kalshi, e.g. "15min", "1h", "1d". Honoured only by types that support it; the response reports Kalshi's own `default_range` and any `selectable_periods` it advertis…

kalshi_game_stats

Live scoreboard and play-by-play for a sports game Kalshi has markets on, keyed by MILESTONE id (not event ticker) — Kalshi's `GET /live_data/milestone/{id}` plus `/game_stats`. Returns the current state (score, period/inning, status, last play, winner once final) and the play list, newest-first, each with its description, clock and score at the time. Get the milestone id from kalshi_milestones (its `related_event_tickers` is the bridge back to tradeable markets). COVERAGE, stated plainly: Kalshi documents play-by-play for Pro/College Football, Pro/College Basketball, WNBA, Soccer, Pro Hocke…

ParameterTypeDescription
milestone_id *stringKalshi milestone UUID, e.g. "ce57e3ef-6b6a-4680-a849-5965021aaac2". Find one with kalshi_milestones(category:"Sports").
limitnumberPlays to return, newest first (default 25, max 500). `plays_total` reports how many existed.

kalshi_milestones

Kalshi's own index of the real-world OCCURRENCES its markets hang off — games, elections, hearings, launches — from `GET /milestones`. Each milestone carries a title, type (e.g. baseball_game, football_game, tennis_tournament_singles, election), category, start and end dates, source ids, and — the reason to use this — `primary_event_tickers` and `related_event_tickers`, which are Kalshi's OWN statement of which markets belong to the occurrence. That is the alternative to matching event titles by string, which is how you accidentally group two different games. Filter by category ("Sport…

ParameterTypeDescription
categorystringKalshi category, exact words, e.g. "Sports" | "Elections" | "Economics" | "Politics".
competitionstringCompetition filter, e.g. "NFL", "NBA" (Kalshi's own spelling; many milestones carry none).
cursorstringPagination cursor from a previous response.
limitnumber1-200 (default 50). Kalshi requires this parameter; we always send it.
minimum_start_datestringRFC3339 timestamp; only milestones starting at or after it. Kalshi's default page is dominated by historical milestones, so pass this to see current ones.
related_event_tickerstringReverse lookup — return milestones linked to this event ticker.
typestringMilestone type, e.g. "baseball_game", "football_game", "basketball_game", "tennis_tournament_singles", "soccer_tournament_multi_leg".

kalshi_structured_targets

The ENTITIES Kalshi's markets are about, as Kalshi models them — players, teams, actors, films and similar — from `GET /structured_targets`. Each row has a stable id, a type — granular by sport, e.g. "actor", "football_player", "soccer_team", "film", "company", "politician", with NO bare "player" or "team" and no error for an unknown one (it returns an empty list, and the response names the known types when that happens), a name, source ids, and a type-specific `details` block (a player carries league, position, jersey, team_id; an actor carries films and social handles). Use it to resol…

ParameterTypeDescription
competitionstringCompetition filter, e.g. "NFL", "NCAAMB". Same silent-empty behaviour as `type` for an unrecognised value.
cursorstringPagination cursor from a previous response.
idsarrayExplicit structured-target ids to fetch. A comma-separated string is accepted too.
page_sizenumber1-2000 (default 100).
typestringEntity type. Kalshi's types are GRANULAR BY SPORT and there is no bare "player", "team" or "athlete" — an unknown value returns 200 with an EMPTY list rather than an error. Seen live 2026-09-16: act…

kalshi_weather_index

Kalshi's OWN city temperature index — the minute-resolution series that its hourly temperature markets settle against, from `GET /live_data/weather/{city}`. This is not a weather forecast and not a single station: it is the number Kalshi computes from a weighted multi-station panel, in Fahrenheit to 0.01, which is the only series a temperature contract actually resolves on. Each point carries `contributors` (how many stations reported) and `status`; a minute where the quorum failed is reported rather than interpolated. CITY IS AN INDEX ID, NOT A PLACE NAME, and Kalshi supports exactly thirte…

ParameterTypeDescription
city *stringIndex city id — one of: miami, dfw, houston, phl-delaware-valley, puget-sound, sf-bay, greater-boston, southeast-michigan, kansas-city, minneapolis-st-paul, nyc, chicago, la-coastal.
detailedbooleanInclude Kalshi's per-station audit readings on every point (much larger response).
fromnumberWindow start, unix MILLISECONDS (Kalshi's unit here, not seconds). Overrides last_sec when given with `to`.
last_secnumberWindow length ending now, in seconds (default 3600). The series is per-minute, so a window under ~120s can legitimately return zero points — that is a real empty window, not a failure, and `points`…
max_pointsnumberNewest points to keep (default 500, max 5000). `points_total` reports the untrimmed count.
tonumberWindow end, unix MILLISECONDS, inclusive. Defaults to now.

kalshi_weather_index_calibrations

How a Kalshi city temperature index is COMPUTED, and every time that changed — `GET /live_data/weather/{city}/calibrations`. Returns the launch configuration plus each weekly offset calibration and methodology update in ascending effective order: per-station weights, per-station offsets in Celsius, the city reference, the config version string, the calibration window and Kalshi's stated reason for the change. This is the audit trail behind kalshi_weather_index: it is what lets you reproduce an index value from raw station data, and what tells you whether a settlement dispute falls before or…

ParameterTypeDescription
city *stringIndex city id — miami, dfw, houston, phl-delaware-valley, puget-sound, sf-bay, greater-boston, southeast-michigan, kansas-city, minneapolis-st-paul, nyc, chicago, la-coastal.