[][src]Struct xtp::QuoteApi

pub struct QuoteApi { /* fields omitted */ }

Methods

impl QuoteApi[src]

pub fn new(id: u8, path: &str, log_level: XTPLogLevel) -> QuoteApi[src]

impl QuoteApi[src]

pub fn get_trading_day(&mut self) -> &str[src]

pub fn get_api_version(&mut self) -> &CStr[src]

pub fn get_api_last_error(&mut self) -> XTPRspInfoStruct[src]

pub fn set_udp_buffer_size(&mut self, buffer_size: u32)[src]

pub fn register_spi<T: QuoteSpi>(&mut self, spi: T)[src]

pub fn set_heart_beat_interval(&mut self, interval: u32)[src]

pub fn subscribe_market_data(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_market_data(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_order_book(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_order_book(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_tick_by_tick(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_tick_by_tick(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_all_market_data(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_market_data(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_all_order_book(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_order_book(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_all_tick_by_tick(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_tick_by_tick(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn login(
    &mut self,
    server_addr: SocketAddrV4,
    username: &str,
    password: &str,
    sock_type: XTPProtocolType
) -> Fallible<()>
[src]

pub fn logout(&mut self) -> Fallible<()>[src]

pub fn query_all_tickers(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn query_tickers_price_info(
    &mut self,
    tickers: &[&str],
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn query_all_tickers_price_info(&mut self) -> Fallible<()>[src]

pub fn subscribe_all_option_market_data(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_option_market_data(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_all_option_order_book(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_option_order_book(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn subscribe_all_option_tick_by_tick(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

pub fn unsubscribe_all_option_tick_by_tick(
    &mut self,
    exchange_id: XTPExchangeType
) -> Fallible<()>
[src]

Trait Implementations

impl Drop for QuoteApi[src]

Auto Trait Implementations

impl RefUnwindSafe for QuoteApi

impl !Send for QuoteApi

impl !Sync for QuoteApi

impl Unpin for QuoteApi

impl UnwindSafe for QuoteApi

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.