[−][src]Struct ib::models::PositionInner
Methods
impl PositionInner
[src]
impl PositionInner
pub fn new() -> PositionInner | [src] |
Account Information
pub fn set_acct_id(&mut self, acct_id: String) | [src] |
pub fn with_acct_id(self, acct_id: String) -> PositionInner | [src] |
pub fn acct_id(&self) -> Option<&String> | [src] |
pub fn reset_acct_id(&mut self) | [src] |
pub fn set_conid(&mut self, conid: i32) | [src] |
pub fn with_conid(self, conid: i32) -> PositionInner | [src] |
pub fn conid(&self) -> Option<&i32> | [src] |
pub fn reset_conid(&mut self) | [src] |
pub fn set_contract_desc(&mut self, contract_desc: String) | [src] |
pub fn with_contract_desc(self, contract_desc: String) -> PositionInner | [src] |
pub fn contract_desc(&self) -> Option<&String> | [src] |
pub fn reset_contract_desc(&mut self) | [src] |
pub fn set_asset_class(&mut self, asset_class: String) | [src] |
pub fn with_asset_class(self, asset_class: String) -> PositionInner | [src] |
pub fn asset_class(&self) -> Option<&String> | [src] |
pub fn reset_asset_class(&mut self) | [src] |
pub fn set_position(&mut self, position: f32) | [src] |
pub fn with_position(self, position: f32) -> PositionInner | [src] |
pub fn position(&self) -> Option<&f32> | [src] |
pub fn reset_position(&mut self) | [src] |
pub fn set_mkt_price(&mut self, mkt_price: f32) | [src] |
pub fn with_mkt_price(self, mkt_price: f32) -> PositionInner | [src] |
pub fn mkt_price(&self) -> Option<&f32> | [src] |
pub fn reset_mkt_price(&mut self) | [src] |
pub fn set_mkt_value(&mut self, mkt_value: f32) | [src] |
pub fn with_mkt_value(self, mkt_value: f32) -> PositionInner | [src] |
pub fn mkt_value(&self) -> Option<&f32> | [src] |
pub fn reset_mkt_value(&mut self) | [src] |
pub fn set_currency(&mut self, currency: String) | [src] |
pub fn with_currency(self, currency: String) -> PositionInner | [src] |
pub fn currency(&self) -> Option<&String> | [src] |
pub fn reset_currency(&mut self) | [src] |
pub fn set_avg_cost(&mut self, avg_cost: f32) | [src] |
pub fn with_avg_cost(self, avg_cost: f32) -> PositionInner | [src] |
pub fn avg_cost(&self) -> Option<&f32> | [src] |
pub fn reset_avg_cost(&mut self) | [src] |
pub fn set_avg_price(&mut self, avg_price: f32) | [src] |
pub fn with_avg_price(self, avg_price: f32) -> PositionInner | [src] |
pub fn avg_price(&self) -> Option<&f32> | [src] |
pub fn reset_avg_price(&mut self) | [src] |
pub fn set_realized_pnl(&mut self, realized_pnl: f32) | [src] |
pub fn with_realized_pnl(self, realized_pnl: f32) -> PositionInner | [src] |
pub fn realized_pnl(&self) -> Option<&f32> | [src] |
pub fn reset_realized_pnl(&mut self) | [src] |
pub fn set_unrealized_pnl(&mut self, unrealized_pnl: f32) | [src] |
pub fn with_unrealized_pnl(self, unrealized_pnl: f32) -> PositionInner | [src] |
pub fn unrealized_pnl(&self) -> Option<&f32> | [src] |
pub fn reset_unrealized_pnl(&mut self) | [src] |
pub fn set_exchs(&mut self, exchs: String) | [src] |
pub fn with_exchs(self, exchs: String) -> PositionInner | [src] |
pub fn exchs(&self) -> Option<&String> | [src] |
pub fn reset_exchs(&mut self) | [src] |
pub fn set_expiry(&mut self, expiry: String) | [src] |
pub fn with_expiry(self, expiry: String) -> PositionInner | [src] |
pub fn expiry(&self) -> Option<&String> | [src] |
pub fn reset_expiry(&mut self) | [src] |
pub fn set_put_or_call(&mut self, put_or_call: String) | [src] |
pub fn with_put_or_call(self, put_or_call: String) -> PositionInner | [src] |
pub fn put_or_call(&self) -> Option<&String> | [src] |
pub fn reset_put_or_call(&mut self) | [src] |
pub fn set_multiplier(&mut self, multiplier: f32) | [src] |
pub fn with_multiplier(self, multiplier: f32) -> PositionInner | [src] |
pub fn multiplier(&self) -> Option<&f32> | [src] |
pub fn reset_multiplier(&mut self) | [src] |
pub fn set_strike(&mut self, strike: f32) | [src] |
pub fn with_strike(self, strike: f32) -> PositionInner | [src] |
pub fn strike(&self) -> Option<&f32> | [src] |
pub fn reset_strike(&mut self) | [src] |
pub fn set_exercise_style(&mut self, exercise_style: String) | [src] |
pub fn with_exercise_style(self, exercise_style: String) -> PositionInner | [src] |
pub fn exercise_style(&self) -> Option<&String> | [src] |
pub fn reset_exercise_style(&mut self) | [src] |
pub fn set_und_conid(&mut self, und_conid: i32) | [src] |
pub fn with_und_conid(self, und_conid: i32) -> PositionInner | [src] |
pub fn und_conid(&self) -> Option<&i32> | [src] |
pub fn reset_und_conid(&mut self) | [src] |
pub fn set_con_exch_map(&mut self, con_exch_map: Vec<String>) | [src] |
pub fn with_con_exch_map(self, con_exch_map: Vec<String>) -> PositionInner | [src] |
pub fn con_exch_map(&self) -> Option<&Vec<String>> | [src] |
pub fn reset_con_exch_map(&mut self) | [src] |
pub fn set_base_mkt_value(&mut self, base_mkt_value: f32) | [src] |
pub fn with_base_mkt_value(self, base_mkt_value: f32) -> PositionInner | [src] |
pub fn base_mkt_value(&self) -> Option<&f32> | [src] |
pub fn reset_base_mkt_value(&mut self) | [src] |
pub fn set_base_mkt_price(&mut self, base_mkt_price: f32) | [src] |
pub fn with_base_mkt_price(self, base_mkt_price: f32) -> PositionInner | [src] |
pub fn base_mkt_price(&self) -> Option<&f32> | [src] |
pub fn reset_base_mkt_price(&mut self) | [src] |
pub fn set_base_avg_cost(&mut self, base_avg_cost: f32) | [src] |
pub fn with_base_avg_cost(self, base_avg_cost: f32) -> PositionInner | [src] |
pub fn base_avg_cost(&self) -> Option<&f32> | [src] |
pub fn reset_base_avg_cost(&mut self) | [src] |
pub fn set_base_avg_price(&mut self, base_avg_price: f32) | [src] |
pub fn with_base_avg_price(self, base_avg_price: f32) -> PositionInner | [src] |
pub fn base_avg_price(&self) -> Option<&f32> | [src] |
pub fn reset_base_avg_price(&mut self) | [src] |
pub fn set_base_realized_pnl(&mut self, base_realized_pnl: f32) | [src] |
pub fn with_base_realized_pnl(self, base_realized_pnl: f32) -> PositionInner | [src] |
pub fn base_realized_pnl(&self) -> Option<&f32> | [src] |
pub fn reset_base_realized_pnl(&mut self) | [src] |
pub fn set_base_unrealized_pnl(&mut self, base_unrealized_pnl: f32) | [src] |
pub fn with_base_unrealized_pnl(self, base_unrealized_pnl: f32) -> PositionInner | [src] |
pub fn base_unrealized_pnl(&self) -> Option<&f32> | [src] |
pub fn reset_base_unrealized_pnl(&mut self) | [src] |
pub fn set_name(&mut self, name: String) | [src] |
pub fn with_name(self, name: String) -> PositionInner | [src] |
pub fn name(&self) -> Option<&String> | [src] |
pub fn reset_name(&mut self) | [src] |
pub fn set_last_trading_day(&mut self, last_trading_day: String) | [src] |
pub fn with_last_trading_day(self, last_trading_day: String) -> PositionInner | [src] |
pub fn last_trading_day(&self) -> Option<&String> | [src] |
pub fn reset_last_trading_day(&mut self) | [src] |
pub fn set_group(&mut self, group: String) | [src] |
pub fn with_group(self, group: String) -> PositionInner | [src] |
pub fn group(&self) -> Option<&String> | [src] |
pub fn reset_group(&mut self) | [src] |
pub fn set_sector(&mut self, sector: String) | [src] |
pub fn with_sector(self, sector: String) -> PositionInner | [src] |
pub fn sector(&self) -> Option<&String> | [src] |
pub fn reset_sector(&mut self) | [src] |
pub fn set_sector_group(&mut self, sector_group: String) | [src] |
pub fn with_sector_group(self, sector_group: String) -> PositionInner | [src] |
pub fn sector_group(&self) -> Option<&String> | [src] |
pub fn reset_sector_group(&mut self) | [src] |
pub fn set_ticker(&mut self, ticker: String) | [src] |
pub fn with_ticker(self, ticker: String) -> PositionInner | [src] |
pub fn ticker(&self) -> Option<&String> | [src] |
pub fn reset_ticker(&mut self) | [src] |
pub fn set_und_comp(&mut self, und_comp: String) | [src] |
pub fn with_und_comp(self, und_comp: String) -> PositionInner | [src] |
pub fn und_comp(&self) -> Option<&String> | [src] |
pub fn reset_und_comp(&mut self) | [src] |
pub fn set_und_sym(&mut self, und_sym: String) | [src] |
pub fn with_und_sym(self, und_sym: String) -> PositionInner | [src] |
pub fn und_sym(&self) -> Option<&String> | [src] |
pub fn reset_und_sym(&mut self) | [src] |
pub fn set_full_name(&mut self, full_name: String) | [src] |
pub fn with_full_name(self, full_name: String) -> PositionInner | [src] |
pub fn full_name(&self) -> Option<&String> | [src] |
pub fn reset_full_name(&mut self) | [src] |
pub fn set_page_size(&mut self, page_size: i32) | [src] |
pub fn with_page_size(self, page_size: i32) -> PositionInner | [src] |
pub fn page_size(&self) -> Option<&i32> | [src] |
pub fn reset_page_size(&mut self) | [src] |
pub fn set_model(&mut self, model: String) | [src] |
pub fn with_model(self, model: String) -> PositionInner | [src] |
pub fn model(&self) -> Option<&String> | [src] |
pub fn reset_model(&mut self) | [src] |
Trait Implementations
impl Debug for PositionInner
[src]
impl Debug for PositionInner
impl Serialize for PositionInner
[src]
impl Serialize for PositionInner
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for PositionInner
[src]
impl<'de> Deserialize<'de> for PositionInner
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for PositionInner
impl Send for PositionInner
impl Sync for PositionInner
impl Sync for PositionInner
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,