Expand description
Parsing utilities for dYdX WebSocket messages.
Converts WebSocket-specific message formats into Nautilus domain types by transforming them into HTTP-equivalent structures and delegating to the HTTP parser for consistency.
Functionsยง
- parse_
candle_ bar - Parses a single candle into a [
Bar]. - parse_
orderbook_ deltas - Parses orderbook deltas (marks as last message by default).
- parse_
orderbook_ deltas_ with_ flag - Parses orderbook deltas with explicit last-message flag for batch processing.
- parse_
orderbook_ snapshot - Parses an orderbook snapshot into [
OrderBookDeltas]. - parse_
trade_ ticks - Parses trade ticks from trade contents.
- parse_
ws_ fill_ report - Parses a WebSocket fill update into a FillReport.
- parse_
ws_ order_ report - Parses a WebSocket order update into an OrderStatusReport.
- parse_
ws_ position_ report - Parses a WebSocket position into a PositionStatusReport.