pub struct OrderResponse {
pub id: String,
pub status: OrderStatus,
pub symbol: String,
pub quantity: f64,
pub price: Option<f64>,
pub stop_price: Option<f64>,
pub side: OrderSide,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub extended_hours: bool,
pub created_at: DateTime<Utc>,
}Expand description
Response from placing an order.
Fields§
§id: StringOrder ID
status: OrderStatusOrder status
symbol: StringSymbol of the security
quantity: f64Quantity of shares
price: Option<f64>Price of the order (for limit orders)
stop_price: Option<f64>Stop price (for stop orders)
side: OrderSideOrder side (buy/sell)
order_type: OrderTypeOrder type
time_in_force: TimeInForceTime in force
extended_hours: boolWhether the order is for extended hours trading
created_at: DateTime<Utc>When the order was created
Trait Implementations§
Source§impl Clone for OrderResponse
impl Clone for OrderResponse
Source§fn clone(&self) -> OrderResponse
fn clone(&self) -> OrderResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderResponse
impl Debug for OrderResponse
Source§impl<'de> Deserialize<'de> for OrderResponse
impl<'de> Deserialize<'de> for OrderResponse
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 OrderResponse
impl RefUnwindSafe for OrderResponse
impl Send for OrderResponse
impl Sync for OrderResponse
impl Unpin for OrderResponse
impl UnwindSafe for OrderResponse
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