↓ Skip to main content
All methods

stakepd.kalshi_data.KalshiClient.get_market

★ Most used → Series
Signature
client.get_market(ticker)

Get one market.

Parameters

ticker:str
Market ticker.

Returns

pandas.Series
Indexed by field name, with the same fields as a get_markets row. Its .name is the ticker.

Raises

KalshiAPIError
With status_code == 404 if the market doesn’t exist.

See also

KalshiClient.get_markets
List many markets as a DataFrame.
KalshiClient.get_orderbook
Get the current order book for a market, in long format.
KalshiClient.get_candlesticks
Get OHLC price history for a market as a time-indexed DataFrame.

Examples
#

from stakepd import kalshi_data as kd

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

Example:

m = client.get_market("KXHIGHNY-26NOV27-B57.5")
print(m[["event_ticker", "status", "yes_sub_title", "yes_bid", "yes_ask", "last_price", "volume", "close_time"]])
Output:
event_ticker              KXHIGHNY-26NOV27
status                              active
yes_sub_title                   57° to 58°
yes_bid                                0.7
yes_ask                               0.71
last_price                            0.71
volume                            12849.67
close_time       2026-11-28 06:00:00+00:00
Name: KXHIGHNY-26NOV27-B57.5, dtype: object

Handling a missing market:

try:
    m = client.get_market("NOT-A-REAL-TICKER")
except kd.KalshiAPIError as e:
    print(e.status_code, e.code, e.message)

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