Expand description
Conversion helpers that translate Kraken API schemas into Nautilus domain models.
Functions§
- bar_
type_ to_ futures_ resolution - Converts a Nautilus BarType to Kraken Futures API resolution string.
- bar_
type_ to_ spot_ interval - Converts a Nautilus BarType to Kraken Spot API interval (in minutes).
- get_
currency - Returns a currency from the internal map or creates a new crypto currency.
- parse_
bar - Parses a Kraken OHLC entry into a Nautilus bar.
- parse_
decimal - Parse a decimal string, handling empty strings and “0” values.
- parse_
decimal_ opt - Parse an optional decimal string.
- parse_
futures_ instrument - Parses a Kraken futures instrument definition into a Nautilus crypto perpetual instrument.
- parse_
millis_ timestamp - parse_
spot_ instrument - Parses a Kraken asset pair definition into a Nautilus currency pair instrument.
- parse_
trade_ tick_ from_ array - Parses a Kraken trade array into a Nautilus trade tick.