pub struct WsOrder {Show 14 fields
pub order_id: Option<String>,
pub cli_ord_id: Option<String>,
pub instrument: Option<String>,
pub side: Option<String>,
pub order_type: Option<String>,
pub limit_price: Option<Decimal>,
pub stop_price: Option<Decimal>,
pub qty: Option<Decimal>,
pub filled: Option<Decimal>,
pub reduce_only: Option<bool>,
pub time: Option<u64>,
pub last_update_time: Option<u64>,
pub status: Option<String>,
pub reason: Option<String>,
}Expand description
Order data from WebSocket.
Fields§
§order_id: Option<String>Order ID.
cli_ord_id: Option<String>Client order ID.
instrument: Option<String>Instrument/symbol.
side: Option<String>Order side (“buy” or “sell”).
order_type: Option<String>Order type (“lmt”, “mkt”, “stp”, “take_profit”).
limit_price: Option<Decimal>Limit price.
stop_price: Option<Decimal>Stop price.
qty: Option<Decimal>Original quantity.
filled: Option<Decimal>Filled quantity.
reduce_only: Option<bool>Reduce only flag.
time: Option<u64>Timestamp.
last_update_time: Option<u64>Last update timestamp.
status: Option<String>Order status.
reason: Option<String>Reason (for cancellation).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsOrder
impl<'de> Deserialize<'de> for WsOrder
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 WsOrder
impl RefUnwindSafe for WsOrder
impl Send for WsOrder
impl Sync for WsOrder
impl Unpin for WsOrder
impl UnwindSafe for WsOrder
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