#[non_exhaustive]pub struct Order {Show 13 fields
pub inst_id: String,
pub ord_id: String,
pub cl_ord_id: String,
pub px: NumberString,
pub sz: NumberString,
pub ord_type: OrderType,
pub side: OrderSide,
pub pos_side: PositionSide,
pub td_mode: TradeMode,
pub acc_fill_sz: NumberString,
pub avg_px: NumberString,
pub state: OrderState,
pub c_time: NumberString,
}Expand description
Details of an existing order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_id: StringInstrument ID.
ord_id: StringOKX order ID.
cl_ord_id: StringClient-supplied order ID, if any.
px: NumberStringOrder price.
sz: NumberStringOrder size.
ord_type: OrderTypeOrder type.
side: OrderSideOrder side.
pos_side: PositionSidePosition side.
td_mode: TradeModeTrade mode.
acc_fill_sz: NumberStringAccumulated filled size.
avg_px: NumberStringAverage fill price.
state: OrderStateOrder state.
c_time: NumberStringCreation time (Unix milliseconds).
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