pub enum SubscriptionChannel {
Show 30 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 {
instrument: String,
interval: String,
},
Quote(String),
PlatformState,
PlatformStatePublicMethods,
InstrumentState {
kind: String,
currency: String,
},
GroupedOrderBook {
instrument: String,
group: String,
depth: String,
interval: String,
},
IncrementalTicker(String),
TradesByKind {
kind: String,
currency: String,
interval: String,
},
PriceRanking(String),
PriceStatistics(String),
VolatilityIndex(String),
BlockRfqTrades(String),
BlockTradeConfirmations,
BlockTradeConfirmationsByCurrency(String),
UserMmpTrigger(String),
UserAccessLog,
UserLock,
Unknown(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
Perpetual updates with configurable interval
Fields
Quote(String)
Quote updates
PlatformState
Platform state updates
PlatformStatePublicMethods
Platform state public methods state updates
InstrumentState
Instrument state changes for a specific kind and currency
Fields
GroupedOrderBook
Grouped order book with configurable depth and interval
Fields
IncrementalTicker(String)
Incremental ticker updates for a specific instrument
TradesByKind
Trades by instrument kind (e.g., future, option) and currency
Fields
PriceRanking(String)
Price ranking data for an index
PriceStatistics(String)
Price statistics for an index
VolatilityIndex(String)
Volatility index data
BlockRfqTrades(String)
Block RFQ trades for a specific currency
BlockTradeConfirmations
Block trade confirmations (all currencies)
BlockTradeConfirmationsByCurrency(String)
Block trade confirmations for a specific currency
UserMmpTrigger(String)
User MMP (Market Maker Protection) trigger for a specific index
UserAccessLog
User API access log
UserLock
User account lock status
Unknown(String)
Unknown or unrecognized channel
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) -> Self
pub fn from_string(s: &str) -> Self
Parse subscription channel from string
Returns the appropriate SubscriptionChannel variant for recognized channel patterns,
or Unknown(String) for unrecognized patterns.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Check if this channel is unknown/unrecognized
Trait Implementations§
Source§impl Clone for SubscriptionChannel
impl Clone for SubscriptionChannel
Source§fn clone(&self) -> SubscriptionChannel
fn clone(&self) -> SubscriptionChannel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more