pub struct PartialDepthStream { /* private fields */ }
Expand description
Partial Book Depth Stream
Top bids and asks, Valid are 5, 10, or 20.
Update Speed: 1000ms or 100ms.
Example
use binance_spot_connector_rust::market_stream::partial_depth::PartialDepthStream;
let stream = PartialDepthStream::from_1000ms("BTCUSDT", 5);
let faster_update_speed_stream = PartialDepthStream::from_100ms("BTCUSDT", 5);
Implementations§
source§impl PartialDepthStream
impl PartialDepthStream
pub fn from_1000ms(symbol: &str, levels: u16) -> Self
pub fn from_100ms(symbol: &str, levels: u16) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for PartialDepthStream
impl Send for PartialDepthStream
impl Sync for PartialDepthStream
impl Unpin for PartialDepthStream
impl UnwindSafe for PartialDepthStream
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