fix: update decimal_to_precision usage to new interface

The keyword parameter name changed in
https://github.com/ccxt/ccxt/pull/26289
Breaking how we call decimal_to_precision.
This commit is contained in:
Matthias
2025-08-01 06:53:38 +02:00
parent c8593b2307
commit de5dd66512
+7 -7
View File
@@ -213,9 +213,9 @@ def amount_to_precision(
amount = float( amount = float(
decimal_to_precision( decimal_to_precision(
amount, amount,
rounding_mode=TRUNCATE, TRUNCATE, # rounding_mode
precision=precision, precision, # numPrecisionDigits
counting_mode=precisionMode, precisionMode, # counting_mode
) )
) )
@@ -311,11 +311,11 @@ def price_to_precision(
return float( return float(
decimal_to_precision( decimal_to_precision(
price, price,
rounding_mode=rounding_mode, rounding_mode, # rounding mode
precision=int(price_precision) int(price_precision)
if precisionMode != TICK_SIZE if precisionMode != TICK_SIZE
else price_precision, else price_precision, # numPrecisionDigits
counting_mode=precisionMode, precisionMode, # counting_mode
) )
) )