Skip to main content

ContractDetails

Struct ContractDetails 

Source
pub struct ContractDetails {
Show 65 fields pub contract: Contract, pub market_name: String, pub min_tick: f64, pub order_types: String, pub valid_exchanges: String, pub price_magnifier: i32, pub under_con_id: i32, pub long_name: String, pub contract_month: String, pub industry: String, pub category: String, pub subcategory: String, pub time_zone_id: String, pub trading_hours: String, pub liquid_hours: String, pub ev_rule: String, pub ev_multiplier: f64, pub sec_id_list: Vec<TagValue>, pub aggregate_group: i32, pub under_symbol: String, pub under_sec_type: String, pub market_rule_ids: String, pub cusip: String, pub issue_date: String, pub ratings: String, pub bond_type: String, pub coupon: f64, pub coupon_type: String, pub convertible: bool, pub callable: bool, pub puttable: bool, pub desc_append: String, pub next_option_date: String, pub next_option_type: String, pub next_option_partial: bool, pub bond_notes: String, pub real_expiration_date: String, pub stock_type: String, pub min_size: Decimal, pub size_increment: Decimal, pub suggested_size_increment: Decimal, pub fund_name: String, pub fund_family: String, pub fund_type: String, pub fund_front_load: String, pub fund_back_load: String, pub fund_back_load_time_interval: String, pub fund_management_fee: String, pub fund_closed: bool, pub fund_closed_for_new_investors: bool, pub fund_closed_for_new_money: bool, pub fund_notify_amount: String, pub fund_minimum_initial_purchase: String, pub fund_minimum_subsequent_purchase: String, pub fund_blue_sky_states: String, pub fund_blue_sky_territories: String, pub fund_distribution_policy_indicator: String, pub fund_asset_type: String, pub ineligibility_reason_list: Vec<IneligibilityReason>, pub event_contract1: String, pub event_contract_description1: String, pub event_contract_description2: String, pub min_algo_size: Decimal, pub last_price_precision: Decimal, pub last_size_precision: Decimal,
}
Expand description

Contract details returned by TWS.

Fields§

§contract: Contract

Contract.

§market_name: String

Market name.

§min_tick: f64

Minimum tick.

§order_types: String

Supported order types.

§valid_exchanges: String

Valid exchanges.

§price_magnifier: i32

Price magnifier.

§under_con_id: i32

Underlying conId.

§long_name: String

Long name.

§contract_month: String

Contract month.

§industry: String

Industry.

§category: String

Category.

§subcategory: String

Subcategory.

§time_zone_id: String

Time zone id.

§trading_hours: String

Trading hours.

§liquid_hours: String

Liquid hours.

§ev_rule: String

Economic value rule.

§ev_multiplier: f64

Economic value multiplier.

§sec_id_list: Vec<TagValue>

Security identifiers returned by TWS.

§aggregate_group: i32

Market-data aggregation group.

§under_symbol: String

Underlying symbol.

§under_sec_type: String

Underlying security type.

§market_rule_ids: String

Market rule ids.

§cusip: String

CUSIP.

§issue_date: String

Issue date.

§ratings: String

Ratings.

§bond_type: String

Bond type.

§coupon: f64

Coupon.

§coupon_type: String

Coupon type.

§convertible: bool

Convertible flag.

§callable: bool

Callable flag.

§puttable: bool

Puttable flag.

§desc_append: String

Description append.

§next_option_date: String

Next option date.

§next_option_type: String

Next option type.

§next_option_partial: bool

Next option partial flag.

§bond_notes: String

Bond notes.

§real_expiration_date: String

Real expiration date.

§stock_type: String

Stock type.

§min_size: Decimal

Minimum order size.

§size_increment: Decimal

Order-size increment.

§suggested_size_increment: Decimal

Suggested order-size increment.

§fund_name: String

Fund name.

§fund_family: String

Fund family.

§fund_type: String

Fund type code.

§fund_front_load: String

Fund front load.

§fund_back_load: String

Fund back load.

§fund_back_load_time_interval: String

Fund back-load interval.

§fund_management_fee: String

Fund management fee.

§fund_closed: bool

Whether the fund is closed.

§fund_closed_for_new_investors: bool

Whether the fund is closed to new investors.

§fund_closed_for_new_money: bool

Whether the fund is closed to new money.

§fund_notify_amount: String

Fund notification amount.

§fund_minimum_initial_purchase: String

Minimum initial purchase.

§fund_minimum_subsequent_purchase: String

Minimum subsequent purchase.

§fund_blue_sky_states: String

Blue-sky states.

§fund_blue_sky_territories: String

Blue-sky territories.

§fund_distribution_policy_indicator: String

Distribution policy indicator.

§fund_asset_type: String

Asset type.

§ineligibility_reason_list: Vec<IneligibilityReason>

Ineligibility reasons.

§event_contract1: String

First event contract.

§event_contract_description1: String

First event contract description.

§event_contract_description2: String

Second event contract description.

§min_algo_size: Decimal

Minimum algorithmic order size.

§last_price_precision: Decimal

Last-price precision.

§last_size_precision: Decimal

Last-size precision.

Trait Implementations§

Source§

impl Clone for ContractDetails

Source§

fn clone(&self) -> ContractDetails

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 ContractDetails

Source§

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

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

impl Default for ContractDetails

Source§

fn default() -> ContractDetails

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

impl PartialEq for ContractDetails

Source§

fn eq(&self, other: &ContractDetails) -> 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 ContractDetails

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.