↓ Skip to main content
All methods

stakepd.kalshi_data.KalshiClient.get_markets

★ Most used → DataFrame
Signature
client.get_markets(*, status=None, event_ticker=None, series_ticker=None, tickers=None,
                   min_close=None, max_close=None, min_settled=None, max_settled=None,
                   max_results=None, **filters)

List markets, one row per market.

This is the usual starting point for finding contracts to analyse. Times accept a str, datetime, date, pandas.Timestamp or Unix seconds. See Time arguments.

Parameters

status:{'unopened', 'open', 'paused', 'closed', 'settled'}, optional
Only markets with this status.
event_ticker:str, optional
Only markets in this event, e.g. "KXHIGHNY-26NOV27".
series_ticker:str, optional
Only markets in this series, e.g. "KXHIGHNY".
tickers:str or list of str, optional
Only these market tickers.
min_close, max_close:time, optional
Only markets that close within this window.
min_settled, max_settled:time, optional
Only markets that settled within this window.
max_results:int, optional
Stop after this many markets. None (the default) fetches all of them, following Kalshi’s pages for you.
**filters
Any other Kalshi query parameter, passed through unchanged. For example, mve_filter="exclude" leaves out multi-leg “combo” markets.

Returns

pandas.DataFrame
One row per market.
Main columns
ColumnTypeDescription
tickerstrMarket ticker
event_tickerstrParent event
statusstractive, closed, determined, finalized, … (Kalshi’s internal status names, which differ from the status filter values)
yes_sub_titlestrWhat YES means, e.g. "57° to 58°"
yes_bid, yes_askfloatBest bid and ask for YES, in dollars (= implied probability)
no_bid, no_askfloatBest bid and ask for NO
last_pricefloatPrice of the most recent trade
volume, volume_24hfloatContracts traded, all time and over the last 24 hours
open_interestfloatContracts currently held
open_time, close_timedatetime64[ns, UTC]When trading opens and closes
resultstr"yes" / "no" once settled, empty before

Every other field Kalshi returns is included too, such as rules_primary, previous_price, yes_bid_size, created_time, price_ranges and market_type.

See also

KalshiClient.get_market
Get a single market as a Series.
KalshiClient.get_events
List events, one row per event.
KalshiClient.get_candlesticks
Get OHLC price history for a market as a time-indexed DataFrame.
KalshiClient.get_trades
List public trades, newest first.

Examples
#

from stakepd import kalshi_data as kd

client = kd.KalshiClient()          # market data is public: no API key needed

Open markets in a series:

markets = client.get_markets(status="open", series_ticker="KXHIGHNY")
print(markets[["ticker", "yes_sub_title", "yes_bid", "yes_ask", "volume", "close_time"]].head(4))
Output:
                   ticker yes_sub_title  yes_bid  yes_ask    volume                close_time
0    KXHIGHNY-26NOV27-T64  65° or above     0.00     0.01    182.00 2026-11-28 06:00:00+00:00
1    KXHIGHNY-26NOV27-T57  56° or below     0.29     0.31  11083.45 2026-11-28 06:00:00+00:00
2  KXHIGHNY-26NOV27-B63.5    63° to 64°     0.00     0.01    502.00 2026-11-28 06:00:00+00:00
3  KXHIGHNY-26NOV27-B61.5    61° to 62°     0.00     0.01    753.00 2026-11-28 06:00:00+00:00

Markets closing in the next 24 hours:

now = pd.Timestamp.now(tz="UTC")
closing_soon = client.get_markets(status="open", min_close=now, max_close=now + pd.Timedelta(hours=24))

Specific markets:

client.get_markets(tickers=["KXHIGHNY-26NOV27-B57.5", "KXHIGHNY-26NOV27-T57"])

Everything that settled last week:

settled = client.get_markets(status="settled", min_settled="2026-11-16", max_settled="2026-11-23")

The most active markets right now:

open_mkts = client.get_markets(status="open", mve_filter="exclude")
open_mkts["spread"] = open_mkts.yes_ask - open_mkts.yes_bid
top = open_mkts.nlargest(20, "volume_24h")[["ticker", "yes_sub_title", "yes_bid", "yes_ask", "spread", "volume_24h"]]
With no filters, get_markets() matches every market on Kalshi. Set max_results or add a filter.

This method is also covered, alongside the rest of the module, in the overview guide.