pub struct Bitstamp { /* private fields */ }
Expand description
Bitstamp Gateway
This gatewat stream order book snapshots from bitstamp websocket api
Implementations
Trait Implementations
sourceimpl Gateway for Bitstamp
impl Gateway for Bitstamp
sourcefn ws_consumer(&self) -> WsConsumer
fn ws_consumer(&self) -> WsConsumer
return the websocket consumer for this gateway
sourcefn unsubscribe(&mut self, symbols: &[String])
fn unsubscribe(&mut self, symbols: &[String])
unsubscribe from a set of assets
sourcefn on_websocket_message(&mut self, value: Value) -> Option<WsUpdate>
fn on_websocket_message(&mut self, value: Value) -> Option<WsUpdate>
handle a websocket message from exchange
fn setup(&self)
sourcefn request_snapshot(&mut self)
fn request_snapshot(&mut self)
Request book snapshots
sourcefn on_book_snapshot(&mut self, _snapshot: BookSnapshot) -> Option<Book>
fn on_book_snapshot(&mut self, _snapshot: BookSnapshot) -> Option<Book>
handle a book snapshot
Auto Trait Implementations
impl !RefUnwindSafe for Bitstamp
impl Send for Bitstamp
impl Sync for Bitstamp
impl Unpin for Bitstamp
impl !UnwindSafe for Bitstamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more