Signatureclient.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| Column | Type | Description |
|---|
order_id | str | Order ID |
ticker | str | Market ticker |
status | str | resting, canceled or executed |
created_time | datetime64[ns, UTC] | When the order was placed |
outcome_side, book_side | str | Which side, and buy (bid) or sell (ask) |
type | str | limit or market |
yes_price, no_price | float | Limit price for each side |
initial_count, fill_count, remaining_count | float | Contracts 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.
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.