Struct lfest::prelude::MarketState
source · pub struct MarketState { /* private fields */ }
Expand description
Some information regarding the state of the market.
Implementations§
source§impl MarketState
impl MarketState
sourcepub fn bid(&self) -> QuoteCurrency
pub fn bid(&self) -> QuoteCurrency
The current bid
sourcepub fn ask(&self) -> QuoteCurrency
pub fn ask(&self) -> QuoteCurrency
The current ask
sourcepub fn current_ts_ns(&self) -> TimestampNs
pub fn current_ts_ns(&self) -> TimestampNs
The current timestamp in nanoseconds
source§impl MarketState
impl MarketState
sourcepub fn mid_price(&self) -> QuoteCurrency
pub fn mid_price(&self) -> QuoteCurrency
Get the mid price
sourcepub fn current_timestamp_ns(&self) -> TimestampNs
pub fn current_timestamp_ns(&self) -> TimestampNs
Get the last observed timestamp in nanoseconts
Trait Implementations§
source§impl Clone for MarketState
impl Clone for MarketState
source§fn clone(&self) -> MarketState
fn clone(&self) -> MarketState
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MarketState
impl RefUnwindSafe for MarketState
impl Send for MarketState
impl Sync for MarketState
impl Unpin for MarketState
impl UnwindSafe for MarketState
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