Module parse

Module parse 

Source
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.