↓ Skip to main content
All methods

stakepd.kalshi_data.KalshiClient.get_orders

API key → DataFrame
Signature
client.get_orders(*, ticker=None, event_ticker=None, status=None, start=None, end=None,
                  max_results=None)

List your orders, newest first.

Times accept a str, datetime, date, pandas.Timestamp or Unix seconds. See Time arguments.

Parameters

ticker:str, optional
Only orders in this market.
event_ticker:str or list of str, optional
Only orders in these events (up to 100).
status:{'resting', 'canceled', 'executed'}, optional
"resting" means still open on the book.
start, end:time, optional
Only orders created within this window.
max_results:int, optional
Stop after this many orders. None (the default) fetches all of them, following Kalshi’s pages for you.

Returns

pandas.DataFrame
One row per order.
Main columns
ColumnTypeDescription
order_idstrOrder ID
tickerstrMarket ticker
statusstrresting, canceled or executed
created_timedatetime64[ns, UTC]When the order was placed
outcome_side, book_sidestrWhich side, and buy (bid) or sell (ask)
typestrlimit or market
yes_price, no_pricefloatLimit price for each side
initial_count, fill_count, remaining_countfloatContracts ordered, filled and still open

Other fields include expiration_time, taker_fees, maker_fees and client_order_id.

Raises

KalshiAuthError
If the client has no credentials. Raised before any request is sent.

See also

KalshiClient.get_fills
Executions of your orders.
KalshiClient.get_positions
List your positions, one row per market.

Examples
#

from stakepd import kalshi_data as kd

client = kd.KalshiClient.from_env()   # portfolio data needs an API key

Orders still resting on the book:

open_orders = client.get_orders(status="resting")
open_orders[["ticker", "outcome_side", "yes_price", "remaining_count"]]
This module only reads data. It doesn’t place or cancel orders.

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