pub enum CoinbaseWsMessage {
L2Data {
timestamp: String,
sequence_num: u64,
events: Vec<WsL2DataEvent>,
},
MarketTrades {
timestamp: String,
sequence_num: u64,
events: Vec<WsMarketTradesEvent>,
},
Ticker {
timestamp: String,
sequence_num: u64,
events: Vec<WsTickerEvent>,
},
TickerBatch {
timestamp: String,
sequence_num: u64,
events: Vec<WsTickerEvent>,
},
Candles {
timestamp: String,
sequence_num: u64,
events: Vec<WsCandlesEvent>,
},
User {
timestamp: String,
sequence_num: u64,
events: Vec<WsUserEvent>,
},
Heartbeats {
timestamp: String,
sequence_num: u64,
events: Vec<WsHeartbeatEvent>,
},
FuturesBalanceSummary {
timestamp: String,
sequence_num: u64,
events: Vec<WsFuturesBalanceSummaryEvent>,
},
Status {
timestamp: String,
sequence_num: u64,
events: Vec<WsStatusEvent>,
},
Subscriptions {
timestamp: String,
sequence_num: u64,
events: Vec<WsSubscriptionsEvent>,
},
}Expand description
Top-level WebSocket message dispatched by channel.
Uses serde internally-tagged enum on the channel field so each variant
deserializes only the events relevant to that channel.
Variants§
L2Data
Order book snapshot or incremental update.
MarketTrades
Market trade executions.
Ticker
Price ticker for a single product.
TickerBatch
Batched ticker updates for multiple products.
Candles
OHLC candle updates.
User
User order status updates.
The feed handler deserializes this channel but ignores it until the execution client is wired.
Heartbeats
Connection heartbeat.
FuturesBalanceSummary
Futures balance summary (requires auth).
The feed handler deserializes this channel but ignores it until account state handling is added.
Status
System status updates.
The feed handler deserializes this channel but ignores it until venue status handling is added.
Subscriptions
Subscription confirmation.
Trait Implementations§
Source§impl Clone for CoinbaseWsMessage
impl Clone for CoinbaseWsMessage
Source§fn clone(&self) -> CoinbaseWsMessage
fn clone(&self) -> CoinbaseWsMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoinbaseWsMessage
impl Debug for CoinbaseWsMessage
Source§impl<'de> Deserialize<'de> for CoinbaseWsMessage
impl<'de> Deserialize<'de> for CoinbaseWsMessage
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>,
Auto Trait Implementations§
impl Freeze for CoinbaseWsMessage
impl RefUnwindSafe for CoinbaseWsMessage
impl Send for CoinbaseWsMessage
impl Sync for CoinbaseWsMessage
impl Unpin for CoinbaseWsMessage
impl UnsafeUnpin for CoinbaseWsMessage
impl UnwindSafe for CoinbaseWsMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more