pub struct OrderItem {Show 23 fields
pub id: u64,
pub symbol: String,
pub symbol_id: u64,
pub total_quantity: f64,
pub open_quantity: f64,
pub filled_quantity: f64,
pub canceled_quantity: f64,
pub side: String,
pub order_type: String,
pub limit_price: Option<f64>,
pub stop_price: Option<f64>,
pub avg_exec_price: Option<f64>,
pub last_exec_price: Option<f64>,
pub commission_charged: f64,
pub state: String,
pub time_in_force: String,
pub creation_time: String,
pub update_time: String,
pub notes: Option<String>,
pub is_all_or_none: bool,
pub is_anonymous: bool,
pub order_group_id: Option<u64>,
pub chain_id: Option<u64>,
}Expand description
A single order from the Questrade orders endpoint.
Fields§
§id: u64Internal order identifier.
symbol: StringTicker symbol (e.g. "AAPL").
symbol_id: u64Questrade internal symbol ID.
total_quantity: f64Total quantity of the order.
open_quantity: f64Quantity still open (unfilled).
filled_quantity: f64Quantity that has been filled.
canceled_quantity: f64Quantity that was canceled.
side: StringOrder side: "Buy", "Sell", "BuyToOpen", "SellToClose", etc.
order_type: StringOrder type: "Market", "Limit", "Stop", "StopLimit", etc.
limit_price: Option<f64>Limit price, if applicable.
stop_price: Option<f64>Stop price, if applicable.
avg_exec_price: Option<f64>Average execution price across all fills.
last_exec_price: Option<f64>Price of the last execution.
commission_charged: f64Commission charged for the order.
state: StringCurrent order state (e.g. "Executed", "Canceled", "Pending", etc.).
time_in_force: StringTime in force: "Day", "GoodTillCanceled", "GoodTillDate", etc.
creation_time: StringISO 8601 datetime when the order was created.
update_time: StringISO 8601 datetime of the last update to the order.
notes: Option<String>Questrade staff annotations.
is_all_or_none: boolWhether the order is all-or-none.
is_anonymous: boolWhether the order is anonymous.
order_group_id: Option<u64>Order group ID for bracket orders.
chain_id: Option<u64>Chain ID linking related orders.