pub struct TradeVolume {Show 13 fields
pub currency: String,
pub calls_volume: f64,
pub puts_volume: f64,
pub futures_volume: f64,
pub spot_volume: f64,
pub calls_volume_7d: Option<f64>,
pub puts_volume_7d: Option<f64>,
pub futures_volume_7d: Option<f64>,
pub spot_volume_7d: Option<f64>,
pub calls_volume_30d: Option<f64>,
pub puts_volume_30d: Option<f64>,
pub futures_volume_30d: Option<f64>,
pub spot_volume_30d: Option<f64>,
}Expand description
Aggregated trade volume by currency
Contains 24-hour trade volumes for different instrument types.
When extended=true, also includes 7-day and 30-day volumes.
Fields§
§currency: StringCurrency (e.g., “BTC”, “ETH”, “USDC”)
calls_volume: f64Total 24h trade volume for call options
puts_volume: f64Total 24h trade volume for put options
futures_volume: f64Total 24h trade volume for futures
spot_volume: f64Total 24h trade volume for spot
calls_volume_7d: Option<f64>Total 7d trade volume for call options (extended only)
puts_volume_7d: Option<f64>Total 7d trade volume for put options (extended only)
futures_volume_7d: Option<f64>Total 7d trade volume for futures (extended only)
spot_volume_7d: Option<f64>Total 7d trade volume for spot (extended only)
calls_volume_30d: Option<f64>Total 30d trade volume for call options (extended only)
puts_volume_30d: Option<f64>Total 30d trade volume for put options (extended only)
futures_volume_30d: Option<f64>Total 30d trade volume for futures (extended only)
spot_volume_30d: Option<f64>Total 30d trade volume for spot (extended only)
Trait Implementations§
Source§impl Clone for TradeVolume
impl Clone for TradeVolume
Source§fn clone(&self) -> TradeVolume
fn clone(&self) -> TradeVolume
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 TradeVolume
impl Debug for TradeVolume
Source§impl<'de> Deserialize<'de> for TradeVolume
impl<'de> Deserialize<'de> for TradeVolume
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 TradeVolume
impl PartialEq for TradeVolume
Source§impl Serialize for TradeVolume
impl Serialize for TradeVolume
impl StructuralPartialEq for TradeVolume
Auto Trait Implementations§
impl Freeze for TradeVolume
impl RefUnwindSafe for TradeVolume
impl Send for TradeVolume
impl Sync for TradeVolume
impl Unpin for TradeVolume
impl UnsafeUnpin for TradeVolume
impl UnwindSafe for TradeVolume
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