[−][src]Struct xtp::QuoteApi
Methods
impl 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]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_market_data(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_order_book(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_order_book(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_tick_by_tick(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_tick_by_tick(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_all_market_data(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_market_data(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_all_order_book(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_order_book(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_all_tick_by_tick(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_tick_by_tick(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn login(
&mut self,
server_addr: SocketAddrV4,
username: &str,
password: &str,
sock_type: XTPProtocolType
) -> Fallible<()>
[src]
&mut self,
server_addr: SocketAddrV4,
username: &str,
password: &str,
sock_type: XTPProtocolType
) -> Fallible<()>
pub fn logout(&mut self) -> Fallible<()>
[src]
pub fn query_all_tickers(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn query_tickers_price_info(
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
tickers: &[&str],
exchange_id: XTPExchangeType
) -> Fallible<()>
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]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_option_market_data(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_all_option_order_book(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_option_order_book(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn subscribe_all_option_tick_by_tick(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
pub fn unsubscribe_all_option_tick_by_tick(
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
[src]
&mut self,
exchange_id: XTPExchangeType
) -> Fallible<()>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,