pub enum BinanceFuturesWsStreamsMessage {
Show 18 variants
AggTrade(BinanceFuturesAggTradeMsg),
Trade(BinanceFuturesTradeMsg),
BookTicker(BinanceFuturesBookTickerMsg),
DepthUpdate(BinanceFuturesDepthUpdateMsg),
MarkPrice(BinanceFuturesMarkPriceMsg),
Kline(BinanceFuturesKlineMsg),
ForceOrder(BinanceFuturesLiquidationMsg),
Ticker(BinanceFuturesTickerMsg),
AccountUpdate(BinanceFuturesAccountUpdateMsg),
OrderUpdate(Box<BinanceFuturesOrderUpdateMsg>),
TradeLite(Box<BinanceFuturesTradeLiteMsg>),
AlgoUpdate(Box<BinanceFuturesAlgoUpdateMsg>),
MarginCall(BinanceFuturesMarginCallMsg),
AccountConfigUpdate(BinanceFuturesAccountConfigMsg),
ListenKeyExpired,
Error(BinanceFuturesWsErrorMsg),
Reconnected(Vec<u64>),
Unsubscribed {
streams: Vec<String>,
correlation: Option<u64>,
},
}Expand description
Output message from the Futures WebSocket streams handler.
Contains venue-specific types for both market data and user data stream events. The data and execution client layers convert these to Nautilus domain types using parse functions with instrument context.
Variants§
AggTrade(BinanceFuturesAggTradeMsg)
Aggregate trade stream.
Trade(BinanceFuturesTradeMsg)
Trade stream.
BookTicker(BinanceFuturesBookTickerMsg)
Best bid/ask (book ticker) stream.
DepthUpdate(BinanceFuturesDepthUpdateMsg)
Order book depth update stream.
MarkPrice(BinanceFuturesMarkPriceMsg)
Mark price stream.
Kline(BinanceFuturesKlineMsg)
Kline/candlestick stream.
ForceOrder(BinanceFuturesLiquidationMsg)
Force liquidation order stream.
Ticker(BinanceFuturesTickerMsg)
24hr ticker stream.
AccountUpdate(BinanceFuturesAccountUpdateMsg)
Account update (balance/position changes).
OrderUpdate(Box<BinanceFuturesOrderUpdateMsg>)
Order/trade update.
TradeLite(Box<BinanceFuturesTradeLiteMsg>)
Trade Lite fill notification (low-latency subset of OrderUpdate).
AlgoUpdate(Box<BinanceFuturesAlgoUpdateMsg>)
Algo order update (conditional orders via Algo Service).
MarginCall(BinanceFuturesMarginCallMsg)
Margin call warning.
AccountConfigUpdate(BinanceFuturesAccountConfigMsg)
Account configuration change (leverage, etc.).
ListenKeyExpired
Listen key expired.
Error(BinanceFuturesWsErrorMsg)
Error from the server.
Reconnected(Vec<u64>)
WebSocket reconnected; carries the correlation IDs of the unsubscribe requests the old connection abandoned.
Unsubscribed
Venue confirmation of an unsubscribe request, carrying the confirmed stream names and the request’s correlation ID when one was supplied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinanceFuturesWsStreamsMessage
impl RefUnwindSafe for BinanceFuturesWsStreamsMessage
impl Send for BinanceFuturesWsStreamsMessage
impl Sync for BinanceFuturesWsStreamsMessage
impl Unpin for BinanceFuturesWsStreamsMessage
impl UnsafeUnpin for BinanceFuturesWsStreamsMessage
impl UnwindSafe for BinanceFuturesWsStreamsMessage
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> ⓘ
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