pub struct Order {Show 36 fields
pub order_id: String,
pub user_id: Option<String>,
pub ticker: String,
pub status: OrderStatus,
pub yes_price: Option<i32>,
pub no_price: Option<i32>,
pub count: Option<i32>,
pub created_time: Option<String>,
pub last_update_time: Option<String>,
pub expiration_time: Option<String>,
pub fill_count: Option<i32>,
pub initial_count: Option<i32>,
pub remaining_count: Option<i32>,
pub queue_position: Option<i32>,
pub taker_fill_count: Option<i32>,
pub place_count: Option<i32>,
pub decrease_count: Option<i32>,
pub maker_fill_count: Option<i32>,
pub fcc_cancel_count: Option<i32>,
pub close_cancel_count: Option<i32>,
pub taker_fees: Option<i32>,
pub taker_fees_dollars: Option<String>,
pub taker_fill_cost: Option<i32>,
pub taker_fill_cost_dollars: Option<String>,
pub maker_fees: Option<i32>,
pub maker_fees_dollars: Option<String>,
pub maker_fill_cost: Option<i32>,
pub maker_fill_cost_dollars: Option<String>,
pub yes_price_dollars: Option<String>,
pub no_price_dollars: Option<String>,
pub action: Action,
pub side: Side,
pub type: String,
pub client_order_id: String,
pub order_group_id: Option<String>,
pub self_trade_prevention_type: Option<String>,
}Expand description
Represents an order in the Kalshi exchange.
This struct details an individual order, including its identification, status, prices, and various metrics related to its lifecycle.
Fields§
§order_id: StringUnique identifier for the order.
user_id: Option<String>Identifier of the user who placed the order. Optional.
ticker: StringTicker of the market associated with the order.
status: OrderStatusCurrent status of the order (e.g., resting, executed).
yes_price: Option<i32>Price of the ‘Yes’ option in the order (cents). Optional for some responses.
no_price: Option<i32>Price of the ‘No’ option in the order (cents). Optional for some responses.
count: Option<i32>Count of contracts in the order. Optional for some responses.
created_time: Option<String>Timestamp when the order was created. Optional.
last_update_time: Option<String>Last update time of the order. Optional.
expiration_time: Option<String>Expiration time of the order. Optional (often null).
fill_count: Option<i32>Total fills (Kalshi now reports a single fill_count).
initial_count: Option<i32>Initial order size.
remaining_count: Option<i32>Remaining count of the order. Optional.
queue_position: Option<i32>Position of the order in the queue. Optional.
taker_fill_count: Option<i32>§place_count: Option<i32>§decrease_count: Option<i32>§maker_fill_count: Option<i32>§fcc_cancel_count: Option<i32>§close_cancel_count: Option<i32>§taker_fees: Option<i32>Fees incurred as a taker (cents).
taker_fees_dollars: Option<String>Taker fees in dollars (string, sometimes null).
taker_fill_cost: Option<i32>Total cost of taker fills (cents).
taker_fill_cost_dollars: Option<String>Taker fill cost in dollars (string).
maker_fees: Option<i32>Maker fees (cents).
maker_fees_dollars: Option<String>Maker fees in dollars (string, sometimes null).
maker_fill_cost: Option<i32>Total cost of maker fills (cents).
maker_fill_cost_dollars: Option<String>Maker fill cost in dollars (string).
yes_price_dollars: Option<String>§no_price_dollars: Option<String>§action: Action§side: Side§type: StringType of the order (e.g., “limit”).
client_order_id: StringClient-side identifier for the order.
order_group_id: Option<String>Group identifier for the order (now nullable).
self_trade_prevention_type: Option<String>Self-trade prevention type (nullable).