pub struct QuoteUpdate {
pub symbol: String,
pub timestamp: u64,
pub ask_price: f64,
pub ask_size: f64,
pub bid_price: f64,
pub bid_size: f64,
}Expand description
Required fields of a top-of-book quote update.
Fields§
§symbol: StringThe asset’s symbol.
timestamp: u64The provider timestamp, preserved without assuming a time unit.
ask_price: f64The lowest ask price.
ask_size: f64The quantity at the ask price.
bid_price: f64The highest bid price.
bid_size: f64The quantity at the bid price.
Trait Implementations§
Source§impl Clone for QuoteUpdate
impl Clone for QuoteUpdate
Source§impl Debug for QuoteUpdate
impl Debug for QuoteUpdate
Source§impl<'de> Deserialize<'de> for QuoteUpdate
impl<'de> Deserialize<'de> for QuoteUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QuoteUpdate
impl PartialEq for QuoteUpdate
impl StructuralPartialEq for QuoteUpdate
Auto Trait Implementations§
impl Freeze for QuoteUpdate
impl RefUnwindSafe for QuoteUpdate
impl Send for QuoteUpdate
impl Sync for QuoteUpdate
impl Unpin for QuoteUpdate
impl UnsafeUnpin for QuoteUpdate
impl UnwindSafe for QuoteUpdate
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