Struct crypto_ws_client::BitzSpotWSClient [−][src]
pub struct BitzSpotWSClient<'a> { /* fields omitted */ }
Expand description
The WebSocket client for Bitz spot market.
- WebSocket API doc: https://apidocv2.bitz.plus/en/#websocket-url
- Trading at https://www.bitz.plus/exchange
Trait Implementations
impl<'a> WSClient<'a> for BitzSpotWSClient<'a>
[src]
impl<'a> WSClient<'a> for BitzSpotWSClient<'a>
[src]fn new(
on_msg: Arc<Mutex<dyn FnMut(String) + Send + 'a>>,
url: Option<&str>
) -> BitzSpotWSClient<'a>
[src]
fn new(
on_msg: Arc<Mutex<dyn FnMut(String) + Send + 'a>>,
url: Option<&str>
) -> BitzSpotWSClient<'a>
[src]Creates a new client. Read more
fn subscribe_orderbook(&self, channels: &[String])
[src]
fn subscribe_orderbook(&self, channels: &[String])
[src]Subscribes to incremental level2 orderbook channels. Read more
fn subscribe_orderbook_snapshot(&self, channels: &[String])
[src]
fn subscribe_orderbook_snapshot(&self, channels: &[String])
[src]Subscribes to level2 orderbook snapshot channels. Read more
fn subscribe_bbo(&self, channels: &[String])
[src]
fn subscribe_bbo(&self, channels: &[String])
[src]Subscribes to BBO(best bid & offer) channels. Read more
fn subscribe_candlestick(&self, pairs: &[String], interval: u32)
[src]
fn subscribe_candlestick(&self, pairs: &[String], interval: u32)
[src]Subscribes to candlestick channels. Read more
fn unsubscribe(&self, channels: &[String])
[src]
fn unsubscribe(&self, channels: &[String])
[src]Unsubscribes from raw channels, lower level API.
Auto Trait Implementations
impl<'a> RefUnwindSafe for BitzSpotWSClient<'a>
impl<'a> Send for BitzSpotWSClient<'a>
impl<'a> Sync for BitzSpotWSClient<'a>
impl<'a> Unpin for BitzSpotWSClient<'a>
impl<'a> UnwindSafe for BitzSpotWSClient<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,