[][src]Struct twsapi::core::contract::Contract

pub struct Contract {
    pub con_id: i32,
    pub symbol: String,
    pub sec_type: String,
    pub last_trade_date_or_contract_month: String,
    pub strike: f64,
    pub right: String,
    pub multiplier: String,
    pub exchange: String,
    pub primary_exchange: String,
    pub currency: String,
    pub local_symbol: String,
    pub trading_class: String,
    pub include_expired: bool,
    pub sec_id_type: String,
    pub sec_id: String,
    pub combo_legs_descrip: String,
    pub combo_legs: Vec<ComboLeg>,
    pub delta_neutral_contract: Option<DeltaNeutralContract>,
}

Fields

con_id: i32symbol: Stringsec_type: Stringlast_trade_date_or_contract_month: Stringstrike: f64right: Stringmultiplier: Stringexchange: Stringprimary_exchange: Stringcurrency: Stringlocal_symbol: Stringtrading_class: Stringinclude_expired: boolsec_id_type: Stringsec_id: Stringcombo_legs_descrip: Stringcombo_legs: Vec<ComboLeg>delta_neutral_contract: Option<DeltaNeutralContract>

Implementations

impl Contract[src]

pub fn new(
    con_id: i32,
    symbol: String,
    sec_type: String,
    last_trade_date_or_contract_month: String,
    strike: f64,
    right: String,
    multiplier: String,
    exchange: String,
    primary_exchange: String,
    currency: String,
    local_symbol: String,
    trading_class: String,
    include_expired: bool,
    sec_id_type: String,
    sec_id: String,
    combo_legs_descrip: String,
    combo_legs: Vec<ComboLeg>,
    delta_neutral_contract: Option<DeltaNeutralContract>
) -> Self
[src]

Trait Implementations

impl Clone for Contract[src]

impl Debug for Contract[src]

impl Default for Contract[src]

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

impl Display for Contract[src]

impl Serialize for Contract[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