pub struct PriceLevel { /* private fields */ }Expand description
Price level that manages the status of the orders with the same price. It does not store the orders themselves, but only the time priority information of the orders.
Implementations§
Source§impl PriceLevel
impl PriceLevel
Sourcepub fn visible_quantity(&self) -> Quantity
pub fn visible_quantity(&self) -> Quantity
Get the visible quantity at this price level
Get the hidden quantity at this price level
Sourcepub fn total_quantity(&self) -> Quantity
pub fn total_quantity(&self) -> Quantity
Get the total quantity at this price level (visible + hidden)
Sourcepub fn order_count(&self) -> u64
pub fn order_count(&self) -> u64
Get the number of orders at this price level
Sourcepub fn queue(&self) -> &VecDeque<QueueEntry>
pub fn queue(&self) -> &VecDeque<QueueEntry>
Get the time priority queue of this price level
Trait Implementations§
Source§impl Clone for PriceLevel
impl Clone for PriceLevel
Source§fn clone(&self) -> PriceLevel
fn clone(&self) -> PriceLevel
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 PriceLevel
impl Debug for PriceLevel
Source§impl Default for PriceLevel
impl Default for PriceLevel
Source§impl<'de> Deserialize<'de> for PriceLevel
impl<'de> Deserialize<'de> for PriceLevel
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
Auto Trait Implementations§
impl Freeze for PriceLevel
impl RefUnwindSafe for PriceLevel
impl Send for PriceLevel
impl Sync for PriceLevel
impl Unpin for PriceLevel
impl UnsafeUnpin for PriceLevel
impl UnwindSafe for PriceLevel
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