Struct ContractApiClient

Source
pub struct ContractApiClient<C: Connect> { /* private fields */ }

Implementations§

Source§

impl<C: Connect> ContractApiClient<C>

Source

pub fn new(configuration: Rc<Configuration<C>>) -> ContractApiClient<C>

Trait Implementations§

Source§

impl<C: Connect> ContractApi for ContractApiClient<C>

Source§

fn iserver_contract_conid_algos_get( &self, conid: &str, algos: &str, add_description: &str, add_params: &str, ) -> Box<dyn Future<Item = Vec<InlineResponse20022>, Error = Error<Value>>>

Source§

fn iserver_contract_conid_info_and_rules_get( &self, conid: &str, is_buy: bool, ) -> Box<dyn Future<Item = InlineResponse20023, Error = Error<Value>>>

Source§

fn iserver_contract_conid_info_get( &self, conid: &str, ) -> Box<dyn Future<Item = Contract, Error = Error<Value>>>

Source§

fn iserver_secdef_info_get( &self, conid: &str, sectype: &str, month: &str, exchange: &str, strike: &str, right: &str, ) -> Box<dyn Future<Item = Value, Error = Error<Value>>>

Source§

fn iserver_secdef_search_post( &self, symbol: Symbol, ) -> Box<dyn Future<Item = Vec<InlineResponse20029>, Error = Error<Value>>>

Source§

fn iserver_secdef_strikes_get( &self, conid: &str, sectype: &str, month: &str, exchange: &str, ) -> Box<dyn Future<Item = InlineResponse20030, Error = Error<Value>>>

Source§

fn trsrv_futures_get( &self, symbols: &str, ) -> Box<dyn Future<Item = InlineResponse20036, Error = Error<Value>>>

Source§

fn trsrv_secdef_post( &self, body: Body11, ) -> Box<dyn Future<Item = Secdef, Error = Error<Value>>>

Source§

fn trsrv_secdef_schedule_get( &self, asset_class: &str, symbol: &str, exchange: &str, exchange_filter: &str, ) -> Box<dyn Future<Item = InlineResponse20037, Error = Error<Value>>>

Source§

fn trsrv_stocks_get( &self, symbols: &str, ) -> Box<dyn Future<Item = InlineResponse20038, Error = Error<Value>>>

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> 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, 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.