Module fixed

Module fixed 

Source
Expand description

Fixed-point conversion utilities for Binance SBE mantissa/exponent values.

Binance SBE responses encode numeric values as mantissa + exponent pairs. These utilities convert directly to Nautilus fixed-point types using pure integer arithmetic, avoiding floating-point precision loss.

Functionsยง

mantissa_to_f64
Converts a mantissa/exponent pair to f64 for display/debugging only.
mantissa_to_price
Converts a mantissa/exponent pair to a Nautilus [Price].
mantissa_to_quantity
Converts a mantissa/exponent pair to a Nautilus [Quantity].