Expand description
Conversion functions that translate AX API schemas into Nautilus types.
Functionsยง
- deserialize_
decimal_ or_ zero - Deserializes a
Decimalfrom a string field that might be empty. - deserialize_
optional_ decimal - Deserializes an optional
Decimalfrom a string field. - deserialize_
optional_ decimal_ from_ str - Deserializes an optional
Decimalfrom a string-only field. - deserialize_
optional_ decimal_ or_ zero - Deserializes a
Decimalfrom an optional string field, defaulting to zero. - map_
bar_ spec_ to_ candle_ width - Maps a Nautilus [
BarSpecification] to anAxCandleWidth. - parse_
decimal - Parses a string to
Decimal, returning an error if parsing fails. - parse_
optional_ decimal - Parses an optional string to
Decimal, returningNoneif the string isNoneor empty.