Module messages

Module messages 

Source
Expand description

Binance Spot WebSocket message types.

This module defines:

  • NautilusWsMessage: Output messages emitted by the handler to the client.
  • HandlerCommand: Commands sent from the client to the handler.
  • Subscription request/response structures for the Binance WebSocket API.

Re-exports§

pub use crate::common::sbe::stream::BestBidAskStreamEvent;
pub use crate::common::sbe::stream::DepthDiffStreamEvent;
pub use crate::common::sbe::stream::DepthSnapshotStreamEvent;
pub use crate::common::sbe::stream::PriceLevel;
pub use crate::common::sbe::stream::Trade;
pub use crate::common::sbe::stream::TradesStreamEvent;

Structs§

BinanceWsErrorMsg
Binance WebSocket error message.
BinanceWsErrorResponse
Binance WebSocket error response.
BinanceWsResponse
Binance WebSocket subscription response.
BinanceWsSubscription
Binance WebSocket subscription request.

Enums§

HandlerCommand
Commands sent from the outer client to the inner handler.
NautilusWsMessage
Normalized output message from the WebSocket handler.