Struct ibapi::orders::OrderState
source · pub struct OrderState {Show 17 fields
pub status: String,
pub initial_margin_before: Option<f64>,
pub maintenance_margin_before: Option<f64>,
pub equity_with_loan_before: Option<f64>,
pub initial_margin_change: Option<f64>,
pub maintenance_margin_change: Option<f64>,
pub equity_with_loan_change: Option<f64>,
pub initial_margin_after: Option<f64>,
pub maintenance_margin_after: Option<f64>,
pub equity_with_loan_after: Option<f64>,
pub commission: Option<f64>,
pub minimum_commission: Option<f64>,
pub maximum_commission: Option<f64>,
pub commission_currency: String,
pub warning_text: String,
pub completed_time: String,
pub completed_status: String,
}Expand description
Provides an active order’s current state.
Fields§
§status: StringThe order’s current status
initial_margin_before: Option<f64>The account’s current initial margin.
maintenance_margin_before: Option<f64>The account’s current maintenance margin
equity_with_loan_before: Option<f64>The account’s current equity with loan
initial_margin_change: Option<f64>The change of the account’s initial margin.
maintenance_margin_change: Option<f64>The change of the account’s maintenance margin
equity_with_loan_change: Option<f64>The change of the account’s equity with loan
initial_margin_after: Option<f64>The order’s impact on the account’s initial margin.
maintenance_margin_after: Option<f64>The order’s impact on the account’s maintenance margin
equity_with_loan_after: Option<f64>Shows the impact the order would have on the account’s equity with loan
commission: Option<f64>The order’s generated commission.
minimum_commission: Option<f64>§maximum_commission: Option<f64>The executions maximum commission.
commission_currency: StringThe generated commission currency
warning_text: StringIf the order is warranted, a descriptive message will be provided.
completed_time: String§completed_status: StringTrait Implementations§
source§impl Clone for OrderState
impl Clone for OrderState
source§fn clone(&self) -> OrderState
fn clone(&self) -> OrderState
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 OrderState
impl Debug for OrderState
source§impl Default for OrderState
impl Default for OrderState
source§fn default() -> OrderState
fn default() -> OrderState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OrderState
impl Send for OrderState
impl Sync for OrderState
impl Unpin for OrderState
impl UnwindSafe for OrderState
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