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