[][src]Struct twsapi::core::order::Order

pub struct Order {
    pub soft_dollar_tier: SoftDollarTier,
    pub order_id: i32,
    pub client_id: i32,
    pub perm_id: i32,
    pub action: String,
    pub total_quantity: f64,
    pub order_type: String,
    pub lmt_price: f64,
    pub aux_price: f64,
    pub tif: String,
    pub active_start_time: String,
    pub active_stop_time: String,
    pub oca_group: String,
    pub oca_type: i32,
    pub order_ref: String,
    pub transmit: bool,
    pub parent_id: i32,
    pub block_order: bool,
    pub sweep_to_fill: bool,
    pub display_size: i32,
    pub trigger_method: i32,
    pub outside_rth: bool,
    pub hidden: bool,
    pub good_after_time: String,
    pub good_till_date: String,
    pub rule80a: String,
    pub all_or_none: bool,
    pub min_qty: i32,
    pub percent_offset: f64,
    pub override_percentage_constraints: bool,
    pub trail_stop_price: f64,
    pub trailing_percent: f64,
    pub fa_group: String,
    pub fa_profile: String,
    pub fa_method: String,
    pub fa_percentage: String,
    pub designated_location: String,
    pub open_close: String,
    pub origin: Origin,
    pub short_sale_slot: i32,
    pub exempt_code: i32,
    pub discretionary_amt: f64,
    pub e_trade_only: bool,
    pub firm_quote_only: bool,
    pub nbbo_price_cap: f64,
    pub opt_out_smart_routing: bool,
    pub auction_strategy: AuctionStrategy,
    pub starting_price: f64,
    pub stock_ref_price: f64,
    pub delta: f64,
    pub stock_range_lower: f64,
    pub stock_range_upper: f64,
    pub randomize_price: bool,
    pub randomize_size: bool,
    pub volatility: f64,
    pub volatility_type: i32,
    pub delta_neutral_order_type: String,
    pub delta_neutral_aux_price: f64,
    pub delta_neutral_con_id: i32,
    pub delta_neutral_settling_firm: String,
    pub delta_neutral_clearing_account: String,
    pub delta_neutral_clearing_intent: String,
    pub delta_neutral_open_close: String,
    pub delta_neutral_short_sale: bool,
    pub delta_neutral_short_sale_slot: i32,
    pub delta_neutral_designated_location: String,
    pub continuous_update: bool,
    pub reference_price_type: i32,
    pub basis_points: f64,
    pub basis_points_type: i32,
    pub scale_init_level_size: i32,
    pub scale_subs_level_size: i32,
    pub scale_price_increment: f64,
    pub scale_price_adjust_value: f64,
    pub scale_price_adjust_interval: i32,
    pub scale_profit_offset: f64,
    pub scale_auto_reset: bool,
    pub scale_init_position: i32,
    pub scale_init_fill_qty: i32,
    pub scale_random_percent: bool,
    pub scale_table: String,
    pub hedge_type: String,
    pub hedge_param: String,
    pub account: String,
    pub settling_firm: String,
    pub clearing_account: String,
    pub clearing_intent: String,
    pub algo_strategy: String,
    pub algo_params: Vec<TagValue>,
    pub smart_combo_routing_params: Vec<TagValue>,
    pub algo_id: String,
    pub what_if: bool,
    pub not_held: bool,
    pub solicited: bool,
    pub model_code: String,
    pub order_combo_legs: Vec<OrderComboLeg>,
    pub order_misc_options: Vec<TagValue>,
    pub reference_contract_id: i32,
    pub pegged_change_amount: f64,
    pub is_pegged_change_amount_decrease: bool,
    pub reference_change_amount: f64,
    pub reference_exchange_id: String,
    pub adjusted_order_type: String,
    pub trigger_price: f64,
    pub adjusted_stop_price: f64,
    pub adjusted_stop_limit_price: f64,
    pub adjusted_trailing_amount: f64,
    pub adjustable_trailing_unit: i32,
    pub lmt_price_offset: f64,
    pub conditions: Vec<OrderConditionEnum>,
    pub conditions_cancel_order: bool,
    pub conditions_ignore_rth: bool,
    pub ext_operator: String,
    pub cash_qty: f64,
    pub mifid2decision_maker: String,
    pub mifid2decision_algo: String,
    pub mifid2execution_trader: String,
    pub mifid2execution_algo: String,
    pub dont_use_auto_price_for_hedge: bool,
    pub is_oms_container: bool,
    pub discretionary_up_to_limit_price: bool,
    pub auto_cancel_date: String,
    pub filled_quantity: f64,
    pub ref_futures_con_id: i32,
    pub auto_cancel_parent: bool,
    pub shareholder: String,
    pub imbalance_only: bool,
    pub route_marketable_to_bbo: bool,
    pub parent_perm_id: i32,
    pub use_price_mgmt_algo: bool,
}

Fields

soft_dollar_tier: SoftDollarTierorder_id: i32client_id: i32perm_id: i32action: Stringtotal_quantity: f64order_type: Stringlmt_price: f64aux_price: f64tif: Stringactive_start_time: Stringactive_stop_time: Stringoca_group: Stringoca_type: i32order_ref: Stringtransmit: boolparent_id: i32block_order: boolsweep_to_fill: booldisplay_size: i32trigger_method: i32outside_rth: boolhidden: boolgood_after_time: Stringgood_till_date: Stringrule80a: Stringall_or_none: boolmin_qty: i32percent_offset: f64override_percentage_constraints: booltrail_stop_price: f64trailing_percent: f64fa_group: Stringfa_profile: Stringfa_method: Stringfa_percentage: Stringdesignated_location: Stringopen_close: Stringorigin: Originshort_sale_slot: i32exempt_code: i32discretionary_amt: f64e_trade_only: boolfirm_quote_only: boolnbbo_price_cap: f64opt_out_smart_routing: boolauction_strategy: AuctionStrategystarting_price: f64stock_ref_price: f64delta: f64stock_range_lower: f64stock_range_upper: f64randomize_price: boolrandomize_size: boolvolatility: f64volatility_type: i32delta_neutral_order_type: Stringdelta_neutral_aux_price: f64delta_neutral_con_id: i32delta_neutral_settling_firm: Stringdelta_neutral_clearing_account: Stringdelta_neutral_clearing_intent: Stringdelta_neutral_open_close: Stringdelta_neutral_short_sale: booldelta_neutral_short_sale_slot: i32delta_neutral_designated_location: Stringcontinuous_update: boolreference_price_type: i32basis_points: f64basis_points_type: i32scale_init_level_size: i32scale_subs_level_size: i32scale_price_increment: f64scale_price_adjust_value: f64scale_price_adjust_interval: i32scale_profit_offset: f64scale_auto_reset: boolscale_init_position: i32scale_init_fill_qty: i32scale_random_percent: boolscale_table: Stringhedge_type: Stringhedge_param: Stringaccount: Stringsettling_firm: Stringclearing_account: Stringclearing_intent: Stringalgo_strategy: Stringalgo_params: Vec<TagValue>smart_combo_routing_params: Vec<TagValue>algo_id: Stringwhat_if: boolnot_held: boolsolicited: boolmodel_code: Stringorder_combo_legs: Vec<OrderComboLeg>order_misc_options: Vec<TagValue>reference_contract_id: i32pegged_change_amount: f64is_pegged_change_amount_decrease: boolreference_change_amount: f64reference_exchange_id: Stringadjusted_order_type: Stringtrigger_price: f64adjusted_stop_price: f64adjusted_stop_limit_price: f64adjusted_trailing_amount: f64adjustable_trailing_unit: i32lmt_price_offset: f64conditions: Vec<OrderConditionEnum>conditions_cancel_order: boolconditions_ignore_rth: boolext_operator: Stringcash_qty: f64mifid2decision_maker: Stringmifid2decision_algo: Stringmifid2execution_trader: Stringmifid2execution_algo: Stringdont_use_auto_price_for_hedge: boolis_oms_container: booldiscretionary_up_to_limit_price: boolauto_cancel_date: Stringfilled_quantity: f64ref_futures_con_id: i32auto_cancel_parent: boolshareholder: Stringimbalance_only: boolroute_marketable_to_bbo: boolparent_perm_id: i32use_price_mgmt_algo: bool

Implementations

impl Order[src]

pub fn new(
    soft_dollar_tier: SoftDollarTier,
    order_id: i32,
    client_id: i32,
    perm_id: i32,
    action: String,
    total_quantity: f64,
    order_type: String,
    lmt_price: f64,
    aux_price: f64,
    tif: String,
    active_start_time: String,
    active_stop_time: String,
    oca_group: String,
    oca_type: i32,
    order_ref: String,
    transmit: bool,
    parent_id: i32,
    block_order: bool,
    sweep_to_fill: bool,
    display_size: i32,
    trigger_method: i32,
    outside_rth: bool,
    hidden: bool,
    good_after_time: String,
    good_till_date: String,
    rule80a: String,
    all_or_none: bool,
    min_qty: i32,
    percent_offset: f64,
    override_percentage_constraints: bool,
    trail_stop_price: f64,
    trailing_percent: f64,
    fa_group: String,
    fa_profile: String,
    fa_method: String,
    fa_percentage: String,
    designated_location: String,
    open_close: String,
    origin: Origin,
    short_sale_slot: i32,
    exempt_code: i32,
    discretionary_amt: f64,
    e_trade_only: bool,
    firm_quote_only: bool,
    nbbo_price_cap: f64,
    opt_out_smart_routing: bool,
    auction_strategy: AuctionStrategy,
    starting_price: f64,
    stock_ref_price: f64,
    delta: f64,
    stock_range_lower: f64,
    stock_range_upper: f64,
    randomize_price: bool,
    randomize_size: bool,
    volatility: f64,
    volatility_type: i32,
    delta_neutral_order_type: String,
    delta_neutral_aux_price: f64,
    delta_neutral_con_id: i32,
    delta_neutral_settling_firm: String,
    delta_neutral_clearing_account: String,
    delta_neutral_clearing_intent: String,
    delta_neutral_open_close: String,
    delta_neutral_short_sale: bool,
    delta_neutral_short_sale_slot: i32,
    delta_neutral_designated_location: String,
    continuous_update: bool,
    reference_price_type: i32,
    basis_points: f64,
    basis_points_type: i32,
    scale_init_level_size: i32,
    scale_subs_level_size: i32,
    scale_price_increment: f64,
    scale_price_adjust_value: f64,
    scale_price_adjust_interval: i32,
    scale_profit_offset: f64,
    scale_auto_reset: bool,
    scale_init_position: i32,
    scale_init_fill_qty: i32,
    scale_random_percent: bool,
    scale_table: String,
    hedge_type: String,
    hedge_param: String,
    account: String,
    settling_firm: String,
    clearing_account: String,
    clearing_intent: String,
    algo_strategy: String,
    algo_params: Vec<TagValue>,
    smart_combo_routing_params: Vec<TagValue>,
    algo_id: String,
    what_if: bool,
    not_held: bool,
    solicited: bool,
    model_code: String,
    order_combo_legs: Vec<OrderComboLeg>,
    order_misc_options: Vec<TagValue>,
    reference_contract_id: i32,
    pegged_change_amount: f64,
    is_pegged_change_amount_decrease: bool,
    reference_change_amount: f64,
    reference_exchange_id: String,
    adjusted_order_type: String,
    trigger_price: f64,
    adjusted_stop_price: f64,
    adjusted_stop_limit_price: f64,
    adjusted_trailing_amount: f64,
    adjustable_trailing_unit: i32,
    lmt_price_offset: f64,
    conditions: Vec<OrderConditionEnum>,
    conditions_cancel_order: bool,
    conditions_ignore_rth: bool,
    ext_operator: String,
    cash_qty: f64,
    mifid2decision_maker: String,
    mifid2decision_algo: String,
    mifid2execution_trader: String,
    mifid2execution_algo: String,
    dont_use_auto_price_for_hedge: bool,
    is_oms_container: bool,
    discretionary_up_to_limit_price: bool,
    auto_cancel_date: String,
    filled_quantity: f64,
    ref_futures_con_id: i32,
    auto_cancel_parent: bool,
    shareholder: String,
    imbalance_only: bool,
    route_marketable_to_bbo: bool,
    parent_perm_id: i32,
    use_price_mgmt_algo: bool
) -> Self
[src]

Trait Implementations

impl Clone for Order[src]

impl Debug for Order[src]

impl Default for Order[src]

impl<'de> Deserialize<'de> for Order[src]

impl Display for Order[src]

impl Serialize for Order[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any