pub struct MarketDepth {
pub position: i32,
pub operation: i32,
pub side: i32,
pub price: f64,
pub size: f64,
}Expand description
Returns the order book.
Fields§
§position: i32The order book’s row being updated
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.
Trait Implementations§
Source§impl Debug for MarketDepth
impl Debug for MarketDepth
Source§impl Default for MarketDepth
impl Default for MarketDepth
Source§fn default() -> MarketDepth
fn default() -> MarketDepth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarketDepth
impl<'de> Deserialize<'de> for MarketDepth
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 MarketDepth
impl PartialEq for MarketDepth
Source§impl Serialize for MarketDepth
impl Serialize for MarketDepth
impl StructuralPartialEq for MarketDepth
Auto Trait Implementations§
impl Freeze for MarketDepth
impl RefUnwindSafe for MarketDepth
impl Send for MarketDepth
impl Sync for MarketDepth
impl Unpin for MarketDepth
impl UnsafeUnpin for MarketDepth
impl UnwindSafe for MarketDepth
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