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§
- Websocket
Manager - Manages the FTX websocket including authentication, keep-alives and reconnections.
Enums§
- Failure
Reason - Failure reasons
- Order
Type - Indicates the type of order.
- Side
OfBook - Indicate whether operation will target the buy (bid) or sell (offer) side of the order book.
- Update
Message - Format for messages received on a channel obtained from calling [‘WebsocketManager::get_order_channel()’].