pub struct DepthStatistics { /* private fields */ }Expand description
Represents the depth statistics of the order book
Implementations§
Source§impl DepthStatistics
impl DepthStatistics
Sourcepub fn n_analyzed_levels(&self) -> usize
pub fn n_analyzed_levels(&self) -> usize
Get the number of analyzed price levels
Sourcepub fn total_value(&self) -> Notional
pub fn total_value(&self) -> Notional
Get the total value of all analyzed price levels
Sourcepub fn total_size(&self) -> Quantity
pub fn total_size(&self) -> Quantity
Get the total size of all analyzed price levels
Sourcepub fn average_level_size(&self) -> f64
pub fn average_level_size(&self) -> f64
Get the average size of all analyzed price levels
Sourcepub fn min_level_size(&self) -> Quantity
pub fn min_level_size(&self) -> Quantity
Get the smallest size of all analyzed price levels
Sourcepub fn max_level_size(&self) -> Quantity
pub fn max_level_size(&self) -> Quantity
Get the largest size of all analyzed price levels
Sourcepub fn std_dev_level_size(&self) -> f64
pub fn std_dev_level_size(&self) -> f64
Get the standard deviation of the size of all analyzed price levels
Trait Implementations§
Source§impl Clone for DepthStatistics
impl Clone for DepthStatistics
Source§fn clone(&self) -> DepthStatistics
fn clone(&self) -> DepthStatistics
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 DepthStatistics
impl Debug for DepthStatistics
Source§impl<'de> Deserialize<'de> for DepthStatistics
impl<'de> Deserialize<'de> for DepthStatistics
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 DepthStatistics
impl PartialEq for DepthStatistics
Source§impl Serialize for DepthStatistics
impl Serialize for DepthStatistics
impl StructuralPartialEq for DepthStatistics
Auto Trait Implementations§
impl Freeze for DepthStatistics
impl RefUnwindSafe for DepthStatistics
impl Send for DepthStatistics
impl Sync for DepthStatistics
impl Unpin for DepthStatistics
impl UnsafeUnpin for DepthStatistics
impl UnwindSafe for DepthStatistics
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