pub struct DiffDepthStream { /* private fields */ }
Expand description
Diff. Depth Stream
Order book price and quantity depth updates used to locally manage an order book.
Update Speed: 1000ms or 100ms.
Example
use binance_spot_connector_rust::market_stream::diff_depth::DiffDepthStream;
let stream = DiffDepthStream::from_1000ms("BTCUSDT");
let faster_update_speed_stream = DiffDepthStream::from_100ms("BTCUSDT");
Implementations§
source§impl DiffDepthStream
impl DiffDepthStream
pub fn from_1000ms(symbol: &str) -> Self
pub fn from_100ms(symbol: &str) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for DiffDepthStream
impl Send for DiffDepthStream
impl Sync for DiffDepthStream
impl Unpin for DiffDepthStream
impl UnwindSafe for DiffDepthStream
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