pub enum TickerData {
Spot(SpotTicker),
Futures(FuturesTicker),
}Expand description
Enum representing ticker data for different instrument types.
This untagged enum allows the API to return ticker data for either spot or futures (including perpetuals). For perpetual futures, the Futures variant is most relevant, containing funding rate and open interest data.
Variants§
Spot(SpotTicker)
Ticker data for spot markets.
Contains market data for spot trading pairs. Not relevant for perpetual futures.
Futures(FuturesTicker)
Ticker data for futures (including perpetuals).
Contains market data for perpetual futures, including funding rates and open interest. Critical for bots monitoring market conditions and funding costs.
Trait Implementations§
Source§impl Clone for TickerData
impl Clone for TickerData
Source§fn clone(&self) -> TickerData
fn clone(&self) -> TickerData
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 TickerData
impl Debug for TickerData
Source§impl<'de> Deserialize<'de> for TickerData
impl<'de> Deserialize<'de> for TickerData
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
Auto Trait Implementations§
impl Freeze for TickerData
impl RefUnwindSafe for TickerData
impl Send for TickerData
impl Sync for TickerData
impl Unpin for TickerData
impl UnwindSafe for TickerData
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