pub struct OrderState {Show 30 fields
pub status: String,
pub init_margin_before: f64,
pub maint_margin_before: f64,
pub equity_with_loan_before: f64,
pub init_margin_change: f64,
pub maint_margin_change: f64,
pub equity_with_loan_change: f64,
pub init_margin_after: f64,
pub maint_margin_after: f64,
pub equity_with_loan_after: f64,
pub commission_and_fees: f64,
pub min_commission_and_fees: f64,
pub max_commission_and_fees: f64,
pub commission_and_fees_currency: String,
pub margin_currency: String,
pub init_margin_before_outside_rth: f64,
pub maint_margin_before_outside_rth: f64,
pub equity_with_loan_before_outside_rth: f64,
pub init_margin_change_outside_rth: f64,
pub maint_margin_change_outside_rth: f64,
pub equity_with_loan_change_outside_rth: f64,
pub init_margin_after_outside_rth: f64,
pub maint_margin_after_outside_rth: f64,
pub equity_with_loan_after_outside_rth: f64,
pub suggested_size: String,
pub reject_reason: String,
pub order_allocations: Vec<OrderAllocation>,
pub warning_text: String,
pub completed_time: String,
pub completed_status: String,
}Expand description
Order state returned by TWS.
Fields§
§status: StringStatus.
init_margin_before: f64Initial margin before the order.
maint_margin_before: f64Maintenance margin before the order.
equity_with_loan_before: f64Equity with loan before the order.
init_margin_change: f64Initial margin change.
maint_margin_change: f64Maintenance margin change.
equity_with_loan_change: f64Equity with loan change.
init_margin_after: f64Initial margin after the order.
maint_margin_after: f64Maintenance margin after the order.
equity_with_loan_after: f64Equity with loan after the order.
commission_and_fees: f64Commission and fees.
min_commission_and_fees: f64Minimum commission and fees.
max_commission_and_fees: f64Maximum commission and fees.
commission_and_fees_currency: StringCommission and fees currency.
margin_currency: StringMargin currency.
init_margin_before_outside_rth: f64Initial margin before the order outside RTH.
maint_margin_before_outside_rth: f64Maintenance margin before the order outside RTH.
equity_with_loan_before_outside_rth: f64Equity with loan before the order outside RTH.
init_margin_change_outside_rth: f64Initial margin change outside RTH.
maint_margin_change_outside_rth: f64Maintenance margin change outside RTH.
equity_with_loan_change_outside_rth: f64Equity with loan change outside RTH.
init_margin_after_outside_rth: f64Initial margin after the order outside RTH.
maint_margin_after_outside_rth: f64Maintenance margin after the order outside RTH.
equity_with_loan_after_outside_rth: f64Equity with loan after the order outside RTH.
suggested_size: StringSuggested size.
reject_reason: StringReject reason.
order_allocations: Vec<OrderAllocation>Allocation details.
warning_text: StringWarning text.
completed_time: StringCompleted time.
completed_status: StringCompleted status.
Trait Implementations§
Source§impl Clone for OrderState
impl Clone for OrderState
Source§fn clone(&self) -> OrderState
fn clone(&self) -> OrderState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more