pub struct OpenOrder {
pub order_id: String,
pub client_id: Option<String>,
pub symbol: Symbol,
pub side: Side,
pub kind: OrderKind,
pub limit_price: Option<Price>,
pub size: Volume,
pub filled: Volume,
pub status: OrderStatus,
pub created_at: Option<DateTime<Utc>>,
}Expand description
A resting (not-yet-terminal) order as reported by the exchange, returned
by ExchangeClient::get_open_orders.
This is the exchange’s view of an order the bot previously placed — used by the framework’s order-tracking layer to age out stale resting orders and to reconcile tracked state after a reconnect.
Fields§
§order_id: StringExchange-assigned order id (matches the id returned by
ExchangeClient::place_order).
client_id: Option<String>Client-supplied id echoed back by the exchange, if any.
symbol: SymbolSymbol the order is for.
side: SideSide of the resting order.
kind: OrderKindOrder kind (limit / post-only / …). Market orders never rest, so a well-behaved adapter won’t report them here.
limit_price: Option<Price>Limit price, if the order kind carries one.
size: VolumeOriginal order quantity.
filled: VolumeQuantity filled so far (0 for an untouched resting order).
status: OrderStatusCurrent status as reported by the exchange.
created_at: Option<DateTime<Utc>>When the order was created at the exchange, if known. Used by the
tracker’s TTL logic; None falls back to the time the bot first
observed the order.