pub struct Order {Show 16 fields
pub id: String,
pub symbol: String,
pub quantity: f64,
pub filled_quantity: f64,
pub price: Option<f64>,
pub stop_price: Option<f64>,
pub status: OrderStatus,
pub side: OrderSide,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub extended_hours: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub commission: f64,
pub rejected_reason: Option<String>,
pub average_fill_price: Option<f64>,
}Expand description
Order information from Webull.
Fields§
§id: StringOrder ID
symbol: StringSymbol of the security
quantity: f64Quantity of shares
filled_quantity: f64Filled quantity of shares
price: Option<f64>Price of the order (for limit orders)
stop_price: Option<f64>Stop price (for stop orders)
status: OrderStatusOrder status
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
updated_at: DateTime<Utc>When the order was last updated
commission: f64Commission charged for the order
rejected_reason: Option<String>Rejected reason (if the order was rejected)
average_fill_price: Option<f64>Average fill price
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 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