pub struct ClosedOrder {Show 22 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 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 order_flags: Vec<OrderFlag>,
pub trades: Option<Vec<String>>,
pub sender_sub_id: Option<String>,
pub reason: Option<String>,
}
Expand description
Order object for closed orders
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>
§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
§order_flags: Vec<OrderFlag>
§trades: Option<Vec<String>>
§sender_sub_id: Option<String>
§reason: Option<String>
Trait Implementations§
Source§impl Clone for ClosedOrder
impl Clone for ClosedOrder
Source§fn clone(&self) -> ClosedOrder
fn clone(&self) -> ClosedOrder
Returns a copy 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 ClosedOrder
impl Debug for ClosedOrder
Source§impl<'de> Deserialize<'de> for ClosedOrder
impl<'de> Deserialize<'de> for ClosedOrder
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
Source§impl PartialEq for ClosedOrder
impl PartialEq for ClosedOrder
impl StructuralPartialEq for ClosedOrder
Auto Trait Implementations§
impl Freeze for ClosedOrder
impl RefUnwindSafe for ClosedOrder
impl Send for ClosedOrder
impl Sync for ClosedOrder
impl Unpin for ClosedOrder
impl UnwindSafe for ClosedOrder
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