pub struct BestBidAskStreamEvent {
pub event_time_us: i64,
pub book_update_id: i64,
pub price_exponent: i8,
pub qty_exponent: i8,
pub bid_price_mantissa: i64,
pub bid_qty_mantissa: i64,
pub ask_price_mantissa: i64,
pub ask_qty_mantissa: i64,
pub symbol: String,
}Expand description
Best bid/ask stream event.
Fields§
§event_time_us: i64Event timestamp in microseconds.
book_update_id: i64Book update ID for sequencing.
price_exponent: i8Price exponent (prices = mantissa * 10^exponent).
qty_exponent: i8Quantity exponent (quantities = mantissa * 10^exponent).
bid_price_mantissa: i64Best bid price mantissa.
bid_qty_mantissa: i64Best bid quantity mantissa.
ask_price_mantissa: i64Best ask price mantissa.
ask_qty_mantissa: i64Best ask quantity mantissa.
symbol: StringTrading symbol.
Implementations§
Source§impl BestBidAskStreamEvent
impl BestBidAskStreamEvent
Sourcepub const BLOCK_LENGTH: usize = 50usize
pub const BLOCK_LENGTH: usize = 50usize
Fixed block length (excluding header and variable-length data).
Sourcepub const MIN_BUFFER_SIZE: usize = 59usize
pub const MIN_BUFFER_SIZE: usize = 59usize
Minimum buffer size needed (header + block + 1-byte string length).
Trait Implementations§
Source§impl Clone for BestBidAskStreamEvent
impl Clone for BestBidAskStreamEvent
Source§fn clone(&self) -> BestBidAskStreamEvent
fn clone(&self) -> BestBidAskStreamEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BestBidAskStreamEvent
impl RefUnwindSafe for BestBidAskStreamEvent
impl Send for BestBidAskStreamEvent
impl Sync for BestBidAskStreamEvent
impl Unpin for BestBidAskStreamEvent
impl UnwindSafe for BestBidAskStreamEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more