Module parse

Module parse 

Source
Expand description

Parsing helpers for Bybit WebSocket payloads.

Functionsยง

parse_kline_topic
Parses a Bybit kline topic into (interval, symbol).
parse_orderbook_deltas
Parses an order book depth message into [OrderBookDeltas].
parse_orderbook_quote
Parses an order book snapshot or delta into a [QuoteTick].
parse_ticker_linear_quote
Parses a linear or inverse ticker payload into a [QuoteTick].
parse_ticker_option_quote
Parses an option ticker payload into a [QuoteTick].
parse_topic
Parses a Bybit WebSocket topic string into its components.
parse_ws_account_state
Parses a WebSocket account wallet payload into an [AccountState].
parse_ws_fill_report
Parses a WebSocket account execution payload into a [FillReport].
parse_ws_kline_bar
Parses a WebSocket kline payload into a [Bar].
parse_ws_order_status_report
Parses a WebSocket account order payload into an [OrderStatusReport].
parse_ws_position_status_report
Parses a WebSocket account position payload into a [PositionStatusReport].
parse_ws_trade_tick
Parses a WebSocket trade frame into a [TradeTick].