pub struct TotalStats {
pub trade_value: f64,
pub trade_volume: i64,
pub trade_volume_at_bid: Option<i64>,
pub trade_volume_at_ask: Option<i64>,
pub transaction: Option<i64>,
pub time: Option<i64>,
}Expand description
Total trading statistics
Fields§
§trade_value: f64Total trade value. Absent on FutOpt aggregates — server sends
{time, totalBidMatch, totalAskMatch, tradeVolume} with no
tradeValue, so a missing field must not fail deserialization.
trade_volume: i64Total trade volume
trade_volume_at_bid: Option<i64>Volume traded at bid
trade_volume_at_ask: Option<i64>Volume traded at ask
transaction: Option<i64>Number of transactions
time: Option<i64>Timestamp
Trait Implementations§
Source§impl Clone for TotalStats
impl Clone for TotalStats
Source§fn clone(&self) -> TotalStats
fn clone(&self) -> TotalStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TotalStats
impl Debug for TotalStats
Source§impl Default for TotalStats
impl Default for TotalStats
Source§fn default() -> TotalStats
fn default() -> TotalStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TotalStats
impl<'de> Deserialize<'de> for TotalStats
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TotalStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TotalStats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TotalStats
impl PartialEq for TotalStats
Source§fn eq(&self, other: &TotalStats) -> bool
fn eq(&self, other: &TotalStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TotalStats
impl Serialize for TotalStats
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TotalStats
Auto Trait Implementations§
impl Freeze for TotalStats
impl RefUnwindSafe for TotalStats
impl Send for TotalStats
impl Sync for TotalStats
impl Unpin for TotalStats
impl UnsafeUnpin for TotalStats
impl UnwindSafe for TotalStats
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