Skip to main content

Betting odds — Kalshi Trade API v2 market data (api.elections.kalshi.com)

sportsdataverse.odds — 9 endpoints.

kalshi_event​

One event, optionally with its markets nested.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/events/{event_ticker}

Valid URL: https://api.elections.kalshi.com/trade-api/v2/events/KXNFLGAME-26OCT08TBDAL?with_nested_markets=true

API ParameterPythonPatternRequiredNullableDescription
event_tickerevent_tickerYEvent ticker, e.g. KXNFLGAME-26OCT08TBDAL (from /events).
with_nested_marketswith_nested_marketsYtrue nests the event's markets under event.markets.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
categoryString
collateral_return_typeString
event_tickerString
exchange_indexInt64
last_updated_tsString
marketsString
mutually_exclusiveBoolean
series_tickerString
settlement_sourcesString
strike_periodString
sub_titleString
titleString
product_metadata_competitionString
product_metadata_competition_scopeString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_event(event_ticker='KXNFLGAME-26OCT08TBDAL', with_nested_markets='true')

kalshi_events​

Events, filterable by series and status; cursor-paged.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/events

Valid URL: https://api.elections.kalshi.com/trade-api/v2/events?limit=3&status=open&series_ticker=KXNFLGAME

API ParameterPythonPatternRequiredNullableDescription
limitlimitYRows per page (max 1000 on /markets, 200 on /events; default 100).
statusstatusYLifecycle filter: open, closed, settled (events also accept unopened).
series_tickerseries_tickerYSeries ticker, e.g. KXNFLGAME (from /series).
cursorcursorYOpaque page cursor returned in the previous page's cursor field (verified 2026-10-06).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
categoryString
collateral_return_typeString
event_tickerString
exchange_indexInt64
last_updated_tsString
mutually_exclusiveBoolean
series_tickerString
settlement_sourcesString
strike_periodString
sub_titleString
titleString
product_metadata_competitionString
product_metadata_competition_scopeString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_events(limit='3', series_ticker='KXNFLGAME', status='open')

kalshi_exchange_status​

Exchange and trading status.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/exchange/status

Valid URL: https://api.elections.kalshi.com/trade-api/v2/exchange/status

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
exchange_activeBoolean
exchange_index_statusesString
intra_exchange_transfers_activeBoolean
trading_activeBoolean

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_exchange_status()

kalshi_market​

One market.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/markets/{ticker}

Valid URL: https://api.elections.kalshi.com/trade-api/v2/markets/KXNFLGAME-26OCT08TBDAL-DAL

API ParameterPythonPatternRequiredNullableDescription
tickertickerYMarket ticker, e.g. KXNFLGAME-26OCT08TBDAL-DAL (from /markets).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
can_close_earlyBoolean
close_timeString
created_timeString
early_close_conditionString
event_tickerString
exchange_indexInt64
expected_expiration_timeString
expiration_timeString
expiration_valueString
last_price_dollarsString
latest_expiration_timeString
market_typeString
no_ask_dollarsString
no_bid_dollarsString
no_sub_titleString
notional_value_dollarsString
occurrence_datetimeString
open_interest_fpString
open_timeString
previous_price_dollarsString
previous_yes_ask_dollarsString
previous_yes_bid_dollarsString
price_level_structureString
price_rangesString
resultString
rules_primaryString
rules_secondaryString
settlement_bounds_typeString
settlement_timer_secondsInt64
statusString
strike_typeString
tickerString
titleString
updated_timeString
volume_24h_fpString
volume_fpString
yes_ask_dollarsString
yes_ask_size_fpString
yes_bid_dollarsString
yes_bid_size_fpString
yes_sub_titleString
custom_strike_football_teamString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_market(ticker='KXNFLGAME-26OCT08TBDAL-DAL')

kalshi_markets​

Markets, filterable by event/series/status; cursor-paged.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/markets

Valid URL: https://api.elections.kalshi.com/trade-api/v2/markets?limit=3&event_ticker=KXNFLGAME-26OCT08TBDAL

API ParameterPythonPatternRequiredNullableDescription
limitlimitYRows per page (max 1000 on /markets, 200 on /events; default 100).
event_tickerevent_tickerYEvent ticker, e.g. KXNFLGAME-26OCT08TBDAL (from /events).
cursorcursorYOpaque page cursor returned in the previous page's cursor field (verified 2026-10-06).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
can_close_earlyBoolean
close_timeString
created_timeString
early_close_conditionString
event_tickerString
exchange_indexInt64
expected_expiration_timeString
expiration_timeString
expiration_valueString
last_price_dollarsString
latest_expiration_timeString
market_typeString
no_ask_dollarsString
no_bid_dollarsString
no_sub_titleString
notional_value_dollarsString
occurrence_datetimeString
open_interest_fpString
open_timeString
previous_price_dollarsString
previous_yes_ask_dollarsString
previous_yes_bid_dollarsString
price_level_structureString
price_rangesString
resultString
rules_primaryString
rules_secondaryString
settlement_bounds_typeString
settlement_timer_secondsInt64
statusString
strike_typeString
tickerString
titleString
updated_timeString
volume_24h_fpString
volume_fpString
yes_ask_dollarsString
yes_ask_size_fpString
yes_bid_dollarsString
yes_bid_size_fpString
yes_sub_titleString
custom_strike_football_teamString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_markets(event_ticker='KXNFLGAME-26OCT08TBDAL', limit='3')

kalshi_orderbook​

Order book of a market (fixed-point dollar levels).

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/markets/{ticker}/orderbook

Valid URL: https://api.elections.kalshi.com/trade-api/v2/markets/KXNFLGAME-26OCT08TBDAL-DAL/orderbook?depth=3

API ParameterPythonPatternRequiredNullableDescription
tickertickerYMarket ticker, e.g. KXNFLGAME-26OCT08TBDAL-DAL (from /markets).
depthdepthYPrice levels per side (omit for the full book).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
sideString
priceString
sizeString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_orderbook(depth='3', ticker='KXNFLGAME-26OCT08TBDAL-DAL')

kalshi_series​

One series.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/series/{series_ticker}

Valid URL: https://api.elections.kalshi.com/trade-api/v2/series/KXNFLGAME

API ParameterPythonPatternRequiredNullableDescription
series_tickerseries_tickerYSeries ticker, e.g. KXNFLGAME (from /series).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
additional_prohibitionsString
categoriesString
categoryString
contract_terms_urlString
contract_urlString
exchange_indexInt64
fee_multiplierInt64
fee_typeString
frequencyString
last_updated_tsString
settlement_sourcesString
tagsString
tickerString
titleString
product_metadata_scopeString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_series(series_ticker='KXNFLGAME')

kalshi_series_list​

Series (market families) in a category; the whole category in one body.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/series

Valid URL: https://api.elections.kalshi.com/trade-api/v2/series?category=Sports

API ParameterPythonPatternRequiredNullableDescription
categorycategoryYSeries category, e.g. Sports.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
additional_prohibitionsString
categoriesString
categoryString
contract_terms_urlString
contract_urlString
exchange_indexInt64
fee_multiplierInt64
fee_typeString
frequencyString
last_updated_tsString
settlement_sourcesString
tagsString
tickerString
titleString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_series_list(category='Sports')

kalshi_trades​

Public trades, filterable by market; cursor-paged.

Endpoint URL: GET https://api.elections.kalshi.com/trade-api/v2/markets/trades

Valid URL: https://api.elections.kalshi.com/trade-api/v2/markets/trades?limit=3&ticker=KXNFLGAME-26OCT08TBDAL-DAL

API ParameterPythonPatternRequiredNullableDescription
limitlimitYRows per page (max 1000 on /markets, 200 on /events; default 100).
tickertickerYMarket ticker, e.g. KXNFLGAME-26OCT08TBDAL-DAL (from /markets).
cursorcursorYOpaque page cursor returned in the previous page's cursor field (verified 2026-10-06).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
count_fpString
created_timeString
is_block_tradeBoolean
no_price_dollarsString
taker_book_sideString
taker_outcome_sideString
taker_sideString
tickerString
trade_idString
yes_price_dollarsString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Kalshi answered 404 (unknown series, event or market ticker).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

kalshi_trades(limit='3', ticker='KXNFLGAME-26OCT08TBDAL-DAL')