pub struct Order {
pub order_id: Option<String>,
pub account_id: Option<String>,
pub symbol: Option<String>,
pub quantity: Option<String>,
pub filled_quantity: Option<String>,
pub order_type: Option<String>,
pub status: Option<String>,
pub status_description: Option<String>,
pub limit_price: Option<String>,
pub stop_price: Option<String>,
pub trade_action: Option<String>,
}Expand description
An order record (active or historical).
Returned by Client::get_orders and Client::get_historical_orders.
Fields§
§order_id: Option<String>Unique order identifier.
account_id: Option<String>Account this order belongs to.
symbol: Option<String>Ticker symbol.
quantity: Option<String>Ordered quantity.
filled_quantity: Option<String>Filled quantity.
order_type: Option<String>Order type (e.g., “Market”, “Limit”, “StopMarket”).
status: Option<String>Current order status.
status_description: Option<String>Human-readable status description.
limit_price: Option<String>Limit price (for Limit and StopLimit orders).
stop_price: Option<String>Stop price (for Stop and StopLimit orders).
trade_action: Option<String>Trade action (e.g., “BUY”, “SELL”, “SELLSHORT”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more