pub struct KlineStream { /* private fields */ }
Expand description
Kline/Candlestick Stream
The Kline/Candlestick Stream push updates to the current klines/candlestick every second.
Update Speed: 2000ms
Example
use binance_spot_connector_rust::{ market::klines::KlineInterval, market_stream::kline::KlineStream };
let stream = KlineStream::new("BTCUSDT", KlineInterval::Minutes1);
Implementations§
source§impl KlineStream
impl KlineStream
pub fn new(symbol: &str, interval: KlineInterval) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for KlineStream
impl Send for KlineStream
impl Sync for KlineStream
impl Unpin for KlineStream
impl UnwindSafe for KlineStream
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