pub struct Order {Show 23 fields
pub ref_id: Option<String>,
pub userref: Option<i64>,
pub client_order_id: Option<String>,
pub status: OrderStatus,
pub open_time: f64,
pub start_time: f64,
pub expire_time: f64,
pub close_time: Option<f64>,
pub descr: OrderDescription,
pub volume: Decimal,
pub volume_executed: Decimal,
pub cost: Decimal,
pub fee: Decimal,
pub price: Decimal,
pub stop_price: Decimal,
pub limit_price: Decimal,
pub trigger: Option<TriggerType>,
pub margin: Option<bool>,
pub misc: String,
pub sender_sub_id: Option<String>,
pub order_flags: Vec<OrderFlag>,
pub trades: Option<Vec<String>>,
pub reason: Option<String>,
}
Expand description
Order object for OpenOrders and QueryOrders
Fields§
§ref_id: Option<String>
§userref: Option<i64>
§client_order_id: Option<String>
§status: OrderStatus
§open_time: f64
§start_time: f64
§expire_time: f64
§close_time: Option<f64>
§descr: OrderDescription
§volume: Decimal
§volume_executed: Decimal
§cost: Decimal
§fee: Decimal
§price: Decimal
§stop_price: Decimal
§limit_price: Decimal
§trigger: Option<TriggerType>
§margin: Option<bool>
§misc: String
§sender_sub_id: Option<String>
§order_flags: Vec<OrderFlag>
§trades: Option<Vec<String>>
§reason: Option<String>
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
impl StructuralPartialEq for Order
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