pub struct TickerStream { /* private fields */ }
Expand description
Ticker Stream
24hr rolling window ticker statistics for a single symbol. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs.
Update Speed: 1000ms.
Example
use binance_spot_connector_rust::market_stream::ticker::TickerStream;
let individual_symbol_stream = TickerStream::from_symbol("BTCUSDT");
let all_symbols_stream = TickerStream::all_symbols();
Implementations§
source§impl TickerStream
impl TickerStream
pub fn all_symbols() -> Self
pub fn from_symbol(symbol: &str) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for TickerStream
impl Send for TickerStream
impl Sync for TickerStream
impl Unpin for TickerStream
impl UnwindSafe for TickerStream
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