pub struct OptionWebsocketApiClient { /* private fields */ }
Implementations§
Source§impl OptionWebsocketApiClient
impl OptionWebsocketApiClient
pub fn subscribe_orderbook<S: AsRef<str>>( &mut self, symbol: S, depth: OrderbookDepth, )
Sourcepub fn subscribe_trade<S: AsRef<str>>(&mut self, base_coin: S)
pub fn subscribe_trade<S: AsRef<str>>(&mut self, base_coin: S)
Subscribe to recent trades.
Note that option uses the base coin, e.g., BTC.
pub fn subscribe_ticker<S: AsRef<str>>(&mut self, symbol: S)
pub fn run<C: Callback<OptionPublicResponseArg>>( &self, callback: C, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for OptionWebsocketApiClient
impl RefUnwindSafe for OptionWebsocketApiClient
impl Send for OptionWebsocketApiClient
impl Sync for OptionWebsocketApiClient
impl Unpin for OptionWebsocketApiClient
impl UnwindSafe for OptionWebsocketApiClient
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