pub enum DydxWsOutputMessage {
Trades {
id: String,
contents: DydxTradeContents,
},
OrderbookSnapshot {
id: String,
contents: DydxOrderbookSnapshotContents,
},
OrderbookUpdate {
id: String,
contents: DydxOrderbookContents,
},
OrderbookBatch {
id: String,
updates: Vec<DydxOrderbookContents>,
},
Candles {
id: String,
contents: DydxCandle,
},
Markets(DydxMarketsContents),
SubaccountSubscribed(Box<DydxWsSubaccountsSubscribed>),
SubaccountsChannelData(Box<DydxWsSubaccountsChannelData>),
BlockHeight {
height: u64,
time: DateTime<Utc>,
},
Error(DydxWebSocketError),
Reconnected {
topics: Vec<String>,
},
}Expand description
Venue-specific message emitted by the handler to consumers.
The handler deserializes raw WebSocket JSON into these typed variants without converting to Nautilus domain types. Consumers (data client, execution client, Python bindings) perform the final conversion using their own instrument caches.
Variants§
Trades
Trade data for a market.
OrderbookSnapshot
Order book snapshot (initial subscription).
OrderbookUpdate
Order book delta update.
OrderbookBatch
Order book batch update (multiple deltas).
Candles
Candle data for a market.
Markets(DydxMarketsContents)
Markets channel data (oracle prices, trading, instrument status).
SubaccountSubscribed(Box<DydxWsSubaccountsSubscribed>)
Subaccount subscription with initial account state.
SubaccountsChannelData(Box<DydxWsSubaccountsChannelData>)
Subaccount channel data (orders, fills).
BlockHeight
Block height update from chain.
Error(DydxWebSocketError)
Error from the venue or handler.
Reconnected
Reconnection notification carrying the reconnected connection’s subscription topics.
Trait Implementations§
Source§impl Clone for DydxWsOutputMessage
impl Clone for DydxWsOutputMessage
Source§fn clone(&self) -> DydxWsOutputMessage
fn clone(&self) -> DydxWsOutputMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DydxWsOutputMessage
impl RefUnwindSafe for DydxWsOutputMessage
impl Send for DydxWsOutputMessage
impl Sync for DydxWsOutputMessage
impl Unpin for DydxWsOutputMessage
impl UnsafeUnpin for DydxWsOutputMessage
impl UnwindSafe for DydxWsOutputMessage
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].