pub struct MarketDepthL2 {
pub position: i32,
pub market_maker: String,
pub operation: i32,
pub side: i32,
pub price: f64,
pub size: f64,
pub smart_depth: bool,
}Expand description
Returns the order book.
Fields§
§position: i32The order book’s row being updated
market_maker: StringThe exchange holding the order if isSmartDepth is True, otherwise the MPID of the market maker
operation: i32How to refresh the row: 0 - insert (insert this new order into the row identified by ‘position’)· 1 - update (update the existing order in the row identified by ‘position’)· 2 - delete (delete the existing order at the row identified by ‘position’).
side: i320 for ask, 1 for bid
price: f64The order’s price.
size: f64The order’s size.
smart_depth: boolFlag indicating if this is smart depth response (aggregate data from multiple exchanges, v974+)
Trait Implementations§
Source§impl Debug for MarketDepthL2
impl Debug for MarketDepthL2
Source§impl Default for MarketDepthL2
impl Default for MarketDepthL2
Source§fn default() -> MarketDepthL2
fn default() -> MarketDepthL2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketDepthL2
impl<'de> Deserialize<'de> for MarketDepthL2
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 MarketDepthL2
impl PartialEq for MarketDepthL2
Source§impl Serialize for MarketDepthL2
impl Serialize for MarketDepthL2
impl StructuralPartialEq for MarketDepthL2
Auto Trait Implementations§
impl Freeze for MarketDepthL2
impl RefUnwindSafe for MarketDepthL2
impl Send for MarketDepthL2
impl Sync for MarketDepthL2
impl Unpin for MarketDepthL2
impl UnsafeUnpin for MarketDepthL2
impl UnwindSafe for MarketDepthL2
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