pub struct MarketStats {
pub currency: String,
pub volume_24h: f64,
pub volume_change_24h: f64,
pub price_change_24h: f64,
pub high_24h: f64,
pub low_24h: f64,
pub active_instruments: u32,
pub total_open_interest: f64,
}Expand description
Market statistics
Fields§
§currency: StringCurrency
volume_24h: f64Total volume in 24h
volume_change_24h: f64Volume change in 24h
price_change_24h: f64Price change in 24h
high_24h: f64High price in 24h
low_24h: f64Low price in 24h
active_instruments: u32Number of active instruments
total_open_interest: f64Total open interest
Trait Implementations§
Source§impl Clone for MarketStats
impl Clone for MarketStats
Source§fn clone(&self) -> MarketStats
fn clone(&self) -> MarketStats
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 MarketStats
impl Debug for MarketStats
Source§impl<'de> Deserialize<'de> for MarketStats
impl<'de> Deserialize<'de> for MarketStats
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 Display for MarketStats
impl Display for MarketStats
Auto Trait Implementations§
impl Freeze for MarketStats
impl RefUnwindSafe for MarketStats
impl Send for MarketStats
impl Sync for MarketStats
impl Unpin for MarketStats
impl UnwindSafe for MarketStats
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