pub enum StreamKind {
Show 32 variants
Ticker,
IndexPrice,
MarkPrice,
CompositeIndex,
Orderbook,
OrderbookDelta,
OrderbookL3,
Trade,
AggTrade,
BlockTrade,
Kline {
interval: KlineInterval,
},
MarkPriceKline {
interval: KlineInterval,
},
IndexPriceKline {
interval: KlineInterval,
},
PremiumIndexKline {
interval: KlineInterval,
},
FundingRate,
PredictedFunding,
FundingSettlement,
OpenInterest,
LongShortRatio,
InsuranceFund,
RiskLimit,
Basis,
Liquidation,
OptionGreeks,
VolatilityIndex,
HistoricalVolatility,
SettlementEvent,
AuctionEvent,
MarketWarning,
OrderUpdate,
BalanceUpdate,
PositionUpdate,
}Expand description
Full enumeration of all known WebSocket stream kinds across all supported exchanges.
Variants with { interval: KlineInterval } carry a parameter.
All other variants are unit variants (no parameters).
Partitioned into groups for documentation; the enum itself is flat.
Variants§
Ticker
Full 24-h rolling ticker (OHLCV + last price + volume)
IndexPrice
Index price feed (spot → perpetual fair value)
MarkPrice
Mark price feed (settlement-reference price)
CompositeIndex
Composite index price (constructed from multiple underlying sources)
Orderbook
Level-2 full-depth snapshot
OrderbookDelta
Level-2 incremental delta stream
OrderbookL3
Level-3 per-order (L3) full orderbook
Trade
Individual public trades (time-and-sales)
AggTrade
Aggregated trades (multiple fills at same price collapsed)
BlockTrade
Block trade / RFQ event (large off-book transactions)
Kline
Standard OHLCV candlestick
Fields
interval: KlineIntervalMarkPriceKline
Mark-price candlestick (futures)
Fields
interval: KlineIntervalIndexPriceKline
Index-price candlestick (futures)
Fields
interval: KlineIntervalPremiumIndexKline
Premium-index candlestick (futures; basis ≈ mark−index)
Fields
interval: KlineIntervalFundingRate
Live funding rate (updates intraperiod)
PredictedFunding
Predicted funding rate before settlement window opens
FundingSettlement
Actual funding settlement event (rate + charged amount)
OpenInterest
Open interest snapshot / update
LongShortRatio
Long/short ratio (market sentiment)
InsuranceFund
Insurance fund balance update
RiskLimit
Risk limit tier update (margin tiers)
Basis
Basis stream (futures price − spot price)
Liquidation
Forced-liquidation event (public)
OptionGreeks
Option greeks: delta/gamma/vega/theta/rho + IV
VolatilityIndex
Volatility index (e.g. DVOL on Deribit)
HistoricalVolatility
Historical realized volatility feed
SettlementEvent
Settlement / expiry delivery event
AuctionEvent
Auction event (indicative price, crossing state)
MarketWarning
Market warning / trading halt notification
OrderUpdate
Order lifecycle events (create/fill/cancel/expire)
BalanceUpdate
Account balance changes
PositionUpdate
Futures position changes
Implementations§
Source§impl StreamKind
impl StreamKind
Trait Implementations§
Source§impl Clone for StreamKind
impl Clone for StreamKind
Source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamKind
impl Debug for StreamKind
Source§impl<'de> Deserialize<'de> for StreamKind
impl<'de> Deserialize<'de> for StreamKind
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>,
impl Eq for StreamKind
Source§impl From<StreamKind> for StreamType
impl From<StreamKind> for StreamType
Source§fn from(kind: StreamKind) -> Self
fn from(kind: StreamKind) -> Self
Source§impl Hash for StreamKind
impl Hash for StreamKind
Source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
Source§fn eq(&self, other: &StreamKind) -> bool
fn eq(&self, other: &StreamKind) -> bool
self and other values to be equal, and is used by ==.