Module ws

Source
Expand description

This module is used to interact with the Websocket API.

Re-exports§

pub use crate::rest::Coin;
pub use crate::rest::Id;
pub use crate::rest::MarketType;
pub use crate::rest::OrderInfo;
pub use crate::rest::Side;
pub use crate::rest::Symbol;
pub use crate::rest::Trade;

Structs§

Fill
Orderbook
Represents the current state of the orderbook, guaranteed to be accurate up to the best 100 bids and best 100 asks since the latest update. Supports efficient insertions, updates, and deletions via a BTreeMap.
OrderbookData
Order book data received from FTX which is used for initializing and updating the OrderBook struct
Response
Ticker
Ws

Enums§

Channel
Data
Represents the data we return to the user
Error
Liquidity
OrderbookAction
ResponseData
Represents the response received from FTX, and is used for deserialization
Type

Type Aliases§

Result