Module ws

Source
Expand description

The ws module enables connections to the ‘FTX websocket API’.

The websocket manager provides complete management of the websocket, including authentication, reconnection and keep-alives.

The module depends on ‘tokio-tungstenite’ for low-level management of the websocket and ‘serde’ for marshalling data in and out of the socket.

Structs§

WebsocketManager
Manages the FTX websocket including authentication, keep-alives and reconnections.

Enums§

FailureReason
Failure reasons
OrderType
Indicates the type of order.
SideOfBook
Indicate whether operation will target the buy (bid) or sell (offer) side of the order book.
UpdateMessage
Format for messages received on a channel obtained from calling [‘WebsocketManager::get_order_channel()’].