↓ Skip to main content
All methods

stakepd.kalshi_data.KalshiClient.get_trades

★ Most used → DataFrame
Signature
client.get_trades(ticker=None, *, start=None, end=None, max_results=None)

List public trades, newest first.

Public trades are every matched trade on the exchange, not just yours. For your own executions, use get_fills. Times accept a str, datetime, date, pandas.Timestamp or Unix seconds. See Time arguments.

Parameters

ticker:str, optional
Only trades in this market. None returns trades across all markets.
start, end:time, optional
Only trades within this window.
max_results:int, optional
Stop after this many trades. Without a ticker or time window, set this: there can be millions of trades.

Returns

pandas.DataFrame
One row per trade.
Main columns
ColumnTypeDescription
trade_idstrUnique trade ID
tickerstrMarket ticker
created_timedatetime64[ns, UTC]When the trade happened
yes_price, no_pricefloatTrade price for each side (they add up to 1)
countfloatContracts traded
taker_outcome_sidestr"yes" or "no": the side the aggressor (taker) bought
taker_book_sidestr"bid" or "ask"

See also

KalshiClient.get_candlesticks
Trades aggregated into OHLC candles.
KalshiClient.get_fills
Only your own trades.
KalshiClient.get_orderbook
Get the current order book for a market, in long format.

Examples
#

from stakepd import kalshi_data as kd

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

Example:

trades = client.get_trades("KXHIGHNY-26NOV27-B57.5", max_results=4)
print(trades[["created_time", "yes_price", "no_price", "count", "taker_outcome_side"]])
Output:
                      created_time  yes_price  no_price  count taker_outcome_side
0 2026-11-27 07:09:33.402301+00:00       0.71      0.29   5.00                yes
1 2026-11-27 07:08:36.563541+00:00       0.70      0.30  40.00                 no
2 2026-11-27 07:07:19.752408+00:00       0.70      0.30  18.46                 no
3 2026-11-27 07:06:14.298487+00:00       0.70      0.30  15.38                 no

One day of trades, VWAP and volume:

# All trades in a market over one day
day = client.get_trades("KXHIGHNY-26NOV27-B57.5", start="2026-11-26", end="2026-11-27")

# Volume-weighted average price (VWAP)
vwap = (day.yes_price * day["count"]).sum() / day["count"].sum()

# Contracts traded per 15 minutes
day.set_index("created_time")["count"].resample("15min").sum()

Save for later:

trades = client.get_trades("KXHIGHNY-26NOV27-B57.5")
trades.to_parquet("trades.parquet")          # keeps the dtypes, including UTC times
trades = pd.read_parquet("trades.parquet")
count is also the name of a DataFrame method, so write df["count"] rather than df.count.

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