pub struct Contract {Show 21 fields
pub con_id: i32,
pub symbol: String,
pub sec_type: String,
pub last_trade_date_or_contract_month: String,
pub last_trade_date: 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 description: String,
pub issuer_id: String,
pub combo_legs_description: String,
pub combo_legs: Vec<ComboLeg>,
pub delta_neutral_contract: Option<DeltaNeutralContract>,
}Expand description
TWS contract.
Fields§
§con_id: i32Contract id.
symbol: StringSymbol.
sec_type: StringSecurity type.
last_trade_date_or_contract_month: StringLast trade date or contract month.
last_trade_date: StringLast trade date.
strike: f64Strike.
right: StringRight.
multiplier: StringMultiplier.
exchange: StringExchange.
primary_exchange: StringPrimary exchange.
currency: StringCurrency.
local_symbol: StringLocal symbol.
trading_class: StringTrading class.
include_expired: boolInclude expired contracts.
sec_id_type: StringSecurity id type.
sec_id: StringSecurity id.
description: StringDescription.
issuer_id: StringIssuer id.
combo_legs_description: StringCombo legs description.
combo_legs: Vec<ComboLeg>Combo legs.
delta_neutral_contract: Option<DeltaNeutralContract>Optional delta-neutral contract.
Trait Implementations§
impl StructuralPartialEq for Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contract
impl UnwindSafe for Contract
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