pub enum SubscriptionChannel {
Show 14 variants
Ticker(String),
OrderBook(String),
Trades(String),
ChartTrades {
instrument: String,
resolution: String,
},
UserOrders,
UserTrades,
UserPortfolio,
UserChanges {
instrument: String,
interval: String,
},
PriceIndex(String),
EstimatedExpirationPrice(String),
MarkPrice(String),
Funding(String),
Perpetual(String),
Quote(String),
}Expand description
WebSocket subscription channel types
Variants§
Ticker(String)
Ticker data for a specific instrument
OrderBook(String)
Order book data for a specific instrument
Trades(String)
Trade data for a specific instrument
ChartTrades
Chart trade data for a specific instrument with resolution
Fields
UserOrders
User’s order updates
UserTrades
User’s trade updates
UserPortfolio
User’s portfolio updates
UserChanges
User’s position changes for a specific instrument with interval
Fields
PriceIndex(String)
Price index updates
EstimatedExpirationPrice(String)
Estimated delivery price
MarkPrice(String)
Mark price updates
Funding(String)
Funding rate updates
Perpetual(String)
Perpetual updates
Quote(String)
Quote updates
Implementations§
Source§impl SubscriptionChannel
impl SubscriptionChannel
Sourcepub fn channel_name(&self) -> String
pub fn channel_name(&self) -> String
Convert subscription channel to channel name
Sourcepub fn from_string(s: &str) -> Option<Self>
pub fn from_string(s: &str) -> Option<Self>
Parse subscription channel from string
Trait Implementations§
Source§impl Clone for SubscriptionChannel
impl Clone for SubscriptionChannel
Source§fn clone(&self) -> SubscriptionChannel
fn clone(&self) -> SubscriptionChannel
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 SubscriptionChannel
impl Debug for SubscriptionChannel
Source§impl<'de> Deserialize<'de> for SubscriptionChannel
impl<'de> Deserialize<'de> for SubscriptionChannel
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 SubscriptionChannel
impl Display for SubscriptionChannel
Source§impl Hash for SubscriptionChannel
impl Hash for SubscriptionChannel
Source§impl PartialEq for SubscriptionChannel
impl PartialEq for SubscriptionChannel
Source§impl Serialize for SubscriptionChannel
impl Serialize for SubscriptionChannel
impl Eq for SubscriptionChannel
impl StructuralPartialEq for SubscriptionChannel
Auto Trait Implementations§
impl Freeze for SubscriptionChannel
impl RefUnwindSafe for SubscriptionChannel
impl Send for SubscriptionChannel
impl Sync for SubscriptionChannel
impl Unpin for SubscriptionChannel
impl UnwindSafe for SubscriptionChannel
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