pub enum Topic {
Show 16 variants
Orderbook {
symbol: String,
depth: DepthLevel,
},
Trade(String),
Ticker(String),
Kline {
symbol: String,
interval: Interval,
},
AllLiquidation(String),
Position(Category),
PositionAllCategory,
Execution(Category),
ExecutionAllCategory,
FastExecution(Category),
FastExecutionAllCategory,
Order(Category),
OrderAllCategory,
Wallet,
Greek,
Dcp(DcpFunction),
}Expand description
A WebSocket topic; serialized as Bybit expects, e.g. tickers.BTCUSDT or order.linear.
Variants§
Orderbook
Order book of a symbol (orderbook.{depth}.{symbol}).
Trade(String)
Public trades of a symbol (publicTrade.{symbol}).
Ticker(String)
Ticker of a symbol (tickers.{symbol}).
Kline
Klines of a symbol (kline.{interval}.{symbol}).
AllLiquidation(String)
All liquidations of a symbol (allLiquidation.{symbol}).
Position(Category)
Positions of a category (position.{category}).
PositionAllCategory
Positions of all categories (position).
Execution(Category)
Executions of a category (execution.{category}).
ExecutionAllCategory
Executions of all categories (execution).
FastExecution(Category)
Fast executions of a category (execution.fast.{category}).
FastExecutionAllCategory
Fast executions of all categories (execution.fast).
Order(Category)
Orders of a category (order.{category}).
OrderAllCategory
Orders of all categories (order).
Wallet
Wallet balance (wallet).
Greek
option only.
Dcp(DcpFunction)
Disconnection Cancellation Protection status (dcp.{function}).