pub struct DepthUpdate {Show 32 fields
pub event_type: String,
pub symbol: String,
pub bid_price1: f64,
pub bid_price2: f64,
pub bid_price3: f64,
pub bid_price4: f64,
pub bid_price5: f64,
pub ask_price1: f64,
pub ask_price2: f64,
pub ask_price3: f64,
pub ask_price4: f64,
pub ask_price5: f64,
pub bid_size1: i64,
pub bid_size2: i64,
pub bid_size3: i64,
pub bid_size4: i64,
pub bid_size5: i64,
pub ask_size1: i64,
pub ask_size2: i64,
pub ask_size3: i64,
pub ask_size4: i64,
pub ask_size5: i64,
pub bid_order1: i64,
pub bid_order2: i64,
pub bid_order3: i64,
pub bid_order4: i64,
pub bid_order5: i64,
pub ask_order1: i64,
pub ask_order2: i64,
pub ask_order3: i64,
pub ask_order4: i64,
pub ask_order5: i64,
}Expand description
Depth-update event (5-level L2 order book).
On the binary wire this is emitted for per-scrip payloads whose topic
name starts with dp|.... In the legacy JSON shape the source
object’s type field equals "dp". Depth feeds require depth
subscriptions (DataSubscriptionKind::DepthUpdate) and aren’t
emitted for index symbols.
Fields§
§event_type: String§symbol: String§bid_price1: f64§bid_price2: f64§bid_price3: f64§bid_price4: f64§bid_price5: f64§ask_price1: f64§ask_price2: f64§ask_price3: f64§ask_price4: f64§ask_price5: f64§bid_size1: i64§bid_size2: i64§bid_size3: i64§bid_size4: i64§bid_size5: i64§ask_size1: i64§ask_size2: i64§ask_size3: i64§ask_size4: i64§ask_size5: i64§bid_order1: i64§bid_order2: i64§bid_order3: i64§bid_order4: i64§bid_order5: i64§ask_order1: i64§ask_order2: i64§ask_order3: i64§ask_order4: i64§ask_order5: i64Trait Implementations§
Source§impl Clone for DepthUpdate
impl Clone for DepthUpdate
Source§fn clone(&self) -> DepthUpdate
fn clone(&self) -> DepthUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DepthUpdate
impl Debug for DepthUpdate
Source§impl<'de> Deserialize<'de> for DepthUpdate
impl<'de> Deserialize<'de> for DepthUpdate
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 DepthUpdate
impl PartialEq for DepthUpdate
Source§impl Serialize for DepthUpdate
impl Serialize for DepthUpdate
impl StructuralPartialEq for DepthUpdate
Auto Trait Implementations§
impl Freeze for DepthUpdate
impl RefUnwindSafe for DepthUpdate
impl Send for DepthUpdate
impl Sync for DepthUpdate
impl Unpin for DepthUpdate
impl UnsafeUnpin for DepthUpdate
impl UnwindSafe for DepthUpdate
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