Skip to main content

ApiSettingsConfig

Struct ApiSettingsConfig 

Source
pub struct ApiSettingsConfig {
Show 36 fields pub read_only_api: Option<bool>, pub total_quantity_for_mutual_funds: Option<bool>, pub download_open_orders_on_connection: Option<bool>, pub include_virtual_fx_positions: Option<bool>, pub prepare_daily_pn_l: Option<bool>, pub send_status_updates_for_volatility_orders: Option<bool>, pub encode_api_messages: Option<String>, pub socket_port: Option<i32>, pub use_negative_auto_range: Option<bool>, pub create_api_message_log_file: Option<bool>, pub include_market_data_in_log_file: Option<bool>, pub expose_trading_schedule_to_api: Option<bool>, pub split_insured_deposit_from_cash_balance: Option<bool>, pub send_zero_positions_for_today_only: Option<bool>, pub let_api_account_requests_switch_subscription: Option<bool>, pub use_account_groups_with_allocation_methods: Option<bool>, pub logging_level: Option<String>, pub master_client_id: Option<i32>, pub bulk_data_timeout: Option<i32>, pub component_exch_separator: Option<String>, pub show_forex_data_in1_10pips: Option<bool>, pub allow_forex_trading_in1_10pips: Option<bool>, pub round_account_values_to_nearest_whole_number: Option<bool>, pub send_market_data_in_lots_for_us_stocks: Option<bool>, pub show_advanced_order_reject_in_ui: Option<bool>, pub reject_messages_above_max_rate: Option<bool>, pub maintain_connection_on_incorrect_fields: Option<bool>, pub compatibility_mode_nasdaq_stocks: Option<bool>, pub send_instrument_timezone: Option<String>, pub send_forex_data_in_compatibility_mode: Option<bool>, pub maintain_and_resubmit_orders_on_reconnect: Option<bool>, pub historical_data_max_size: Option<i32>, pub auto_report_netting_event_contract_trades: Option<bool>, pub option_exercise_request_type: Option<String>, pub allow_localhost_only: Option<bool>, pub trusted_i_ps: Vec<String>,
}

Fields§

§read_only_api: Option<bool>§total_quantity_for_mutual_funds: Option<bool>§download_open_orders_on_connection: Option<bool>§include_virtual_fx_positions: Option<bool>§prepare_daily_pn_l: Option<bool>§send_status_updates_for_volatility_orders: Option<bool>§encode_api_messages: Option<String>§socket_port: Option<i32>§use_negative_auto_range: Option<bool>§create_api_message_log_file: Option<bool>§include_market_data_in_log_file: Option<bool>§expose_trading_schedule_to_api: Option<bool>§split_insured_deposit_from_cash_balance: Option<bool>§send_zero_positions_for_today_only: Option<bool>§let_api_account_requests_switch_subscription: Option<bool>§use_account_groups_with_allocation_methods: Option<bool>§logging_level: Option<String>§master_client_id: Option<i32>§bulk_data_timeout: Option<i32>§component_exch_separator: Option<String>§show_forex_data_in1_10pips: Option<bool>§allow_forex_trading_in1_10pips: Option<bool>§round_account_values_to_nearest_whole_number: Option<bool>§send_market_data_in_lots_for_us_stocks: Option<bool>§show_advanced_order_reject_in_ui: Option<bool>§reject_messages_above_max_rate: Option<bool>§maintain_connection_on_incorrect_fields: Option<bool>§compatibility_mode_nasdaq_stocks: Option<bool>§send_instrument_timezone: Option<String>§send_forex_data_in_compatibility_mode: Option<bool>§maintain_and_resubmit_orders_on_reconnect: Option<bool>§historical_data_max_size: Option<i32>§auto_report_netting_event_contract_trades: Option<bool>§option_exercise_request_type: Option<String>§allow_localhost_only: Option<bool>§trusted_i_ps: Vec<String>

Implementations§

Source§

impl ApiSettingsConfig

Source

pub fn read_only_api(&self) -> bool

Returns the value of read_only_api, or the default value if read_only_api is unset.

Source

pub fn total_quantity_for_mutual_funds(&self) -> bool

Returns the value of total_quantity_for_mutual_funds, or the default value if total_quantity_for_mutual_funds is unset.

Source

pub fn download_open_orders_on_connection(&self) -> bool

Returns the value of download_open_orders_on_connection, or the default value if download_open_orders_on_connection is unset.

Source

pub fn include_virtual_fx_positions(&self) -> bool

Returns the value of include_virtual_fx_positions, or the default value if include_virtual_fx_positions is unset.

Source

pub fn prepare_daily_pn_l(&self) -> bool

Returns the value of prepare_daily_pn_l, or the default value if prepare_daily_pn_l is unset.

Source

pub fn send_status_updates_for_volatility_orders(&self) -> bool

Returns the value of send_status_updates_for_volatility_orders, or the default value if send_status_updates_for_volatility_orders is unset.

Source

pub fn encode_api_messages(&self) -> &str

Returns the value of encode_api_messages, or the default value if encode_api_messages is unset.

Source

pub fn socket_port(&self) -> i32

Returns the value of socket_port, or the default value if socket_port is unset.

Source

pub fn use_negative_auto_range(&self) -> bool

Returns the value of use_negative_auto_range, or the default value if use_negative_auto_range is unset.

Source

pub fn create_api_message_log_file(&self) -> bool

Returns the value of create_api_message_log_file, or the default value if create_api_message_log_file is unset.

Source

pub fn include_market_data_in_log_file(&self) -> bool

Returns the value of include_market_data_in_log_file, or the default value if include_market_data_in_log_file is unset.

Source

pub fn expose_trading_schedule_to_api(&self) -> bool

Returns the value of expose_trading_schedule_to_api, or the default value if expose_trading_schedule_to_api is unset.

Source

pub fn split_insured_deposit_from_cash_balance(&self) -> bool

Returns the value of split_insured_deposit_from_cash_balance, or the default value if split_insured_deposit_from_cash_balance is unset.

Source

pub fn send_zero_positions_for_today_only(&self) -> bool

Returns the value of send_zero_positions_for_today_only, or the default value if send_zero_positions_for_today_only is unset.

Source

pub fn let_api_account_requests_switch_subscription(&self) -> bool

Returns the value of let_api_account_requests_switch_subscription, or the default value if let_api_account_requests_switch_subscription is unset.

Source

pub fn use_account_groups_with_allocation_methods(&self) -> bool

Returns the value of use_account_groups_with_allocation_methods, or the default value if use_account_groups_with_allocation_methods is unset.

Source

pub fn logging_level(&self) -> &str

Returns the value of logging_level, or the default value if logging_level is unset.

Source

pub fn master_client_id(&self) -> i32

Returns the value of master_client_id, or the default value if master_client_id is unset.

Source

pub fn bulk_data_timeout(&self) -> i32

Returns the value of bulk_data_timeout, or the default value if bulk_data_timeout is unset.

Source

pub fn component_exch_separator(&self) -> &str

Returns the value of component_exch_separator, or the default value if component_exch_separator is unset.

Source

pub fn show_forex_data_in1_10pips(&self) -> bool

Returns the value of show_forex_data_in1_10pips, or the default value if show_forex_data_in1_10pips is unset.

Source

pub fn allow_forex_trading_in1_10pips(&self) -> bool

Returns the value of allow_forex_trading_in1_10pips, or the default value if allow_forex_trading_in1_10pips is unset.

Source

pub fn round_account_values_to_nearest_whole_number(&self) -> bool

Returns the value of round_account_values_to_nearest_whole_number, or the default value if round_account_values_to_nearest_whole_number is unset.

Source

pub fn send_market_data_in_lots_for_us_stocks(&self) -> bool

Returns the value of send_market_data_in_lots_for_us_stocks, or the default value if send_market_data_in_lots_for_us_stocks is unset.

Source

pub fn show_advanced_order_reject_in_ui(&self) -> bool

Returns the value of show_advanced_order_reject_in_ui, or the default value if show_advanced_order_reject_in_ui is unset.

Source

pub fn reject_messages_above_max_rate(&self) -> bool

Returns the value of reject_messages_above_max_rate, or the default value if reject_messages_above_max_rate is unset.

Source

pub fn maintain_connection_on_incorrect_fields(&self) -> bool

Returns the value of maintain_connection_on_incorrect_fields, or the default value if maintain_connection_on_incorrect_fields is unset.

Source

pub fn compatibility_mode_nasdaq_stocks(&self) -> bool

Returns the value of compatibility_mode_nasdaq_stocks, or the default value if compatibility_mode_nasdaq_stocks is unset.

Source

pub fn send_instrument_timezone(&self) -> &str

Returns the value of send_instrument_timezone, or the default value if send_instrument_timezone is unset.

Source

pub fn send_forex_data_in_compatibility_mode(&self) -> bool

Returns the value of send_forex_data_in_compatibility_mode, or the default value if send_forex_data_in_compatibility_mode is unset.

Source

pub fn maintain_and_resubmit_orders_on_reconnect(&self) -> bool

Returns the value of maintain_and_resubmit_orders_on_reconnect, or the default value if maintain_and_resubmit_orders_on_reconnect is unset.

Source

pub fn historical_data_max_size(&self) -> i32

Returns the value of historical_data_max_size, or the default value if historical_data_max_size is unset.

Source

pub fn auto_report_netting_event_contract_trades(&self) -> bool

Returns the value of auto_report_netting_event_contract_trades, or the default value if auto_report_netting_event_contract_trades is unset.

Source

pub fn option_exercise_request_type(&self) -> &str

Returns the value of option_exercise_request_type, or the default value if option_exercise_request_type is unset.

Source

pub fn allow_localhost_only(&self) -> bool

Returns the value of allow_localhost_only, or the default value if allow_localhost_only is unset.

Trait Implementations§

Source§

impl Clone for ApiSettingsConfig

Source§

fn clone(&self) -> ApiSettingsConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ApiSettingsConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ApiSettingsConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ApiSettingsConfig

Source§

impl Hash for ApiSettingsConfig

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for ApiSettingsConfig

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for ApiSettingsConfig

Source§

fn eq(&self, other: &ApiSettingsConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ApiSettingsConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.