Expand description
Conversion helpers that translate Bybit API schemas into Nautilus instruments.
Functionsยง
- bar_
spec_ to_ bybit_ interval - Converts a Nautilus bar aggregation and step to a Bybit kline interval string.
- extract_
raw_ symbol - Extracts the raw symbol from a Bybit symbol by removing the product type suffix.
- make_
bybit_ symbol - Constructs a full Bybit symbol from a raw symbol and product type.
- parse_
account_ state - Parses a Bybit wallet balance into a Nautilus account state.
- parse_
fill_ report - Parses a Bybit execution into a Nautilus FillReport.
- parse_
inverse_ instrument - Parses an inverse contract definition into a Nautilus instrument.
- parse_
kline_ bar - Parses a kline entry into a [
Bar]. - parse_
linear_ instrument - Parses a linear contract definition (perpetual or dated future) into a Nautilus instrument.
- parse_
option_ instrument - Parses a Bybit option contract definition into a Nautilus option instrument.
- parse_
order_ status_ report - Parses a Bybit order into a Nautilus OrderStatusReport.
- parse_
position_ status_ report - Parses a Bybit position into a Nautilus PositionStatusReport.
- parse_
spot_ instrument - Parses a spot instrument definition returned by Bybit into a Nautilus currency pair.
- parse_
trade_ tick - Parses a REST trade payload into a [
TradeTick].