Derives the number of decimal places to show for a price based on its magnitude — a display heuristic for reports, NOT exchange tick-size precision.
The scale steps in even increments (2, 4, 6, 8): cheaper coins (most of Binance's catalogue) get more decimals, one step of two per decimal order:
For real order placement use the symbol's PRICE_FILTER.tickSize from exchangeInfo instead — magnitude is only an approximation of it.
The price to derive the decimal scale for
The number of digits after the decimal point (always even, 2..8)
Derives the number of decimal places to show for a price based on its magnitude — a display heuristic for reports, NOT exchange tick-size precision.
The scale steps in even increments (2, 4, 6, 8): cheaper coins (most of Binance's catalogue) get more decimals, one step of two per decimal order:
For real order placement use the symbol's PRICE_FILTER.tickSize from exchangeInfo instead — magnitude is only an approximation of it.