chore: fix oddity of price_to_precision

This commit is contained in:
Matthias
2024-12-08 14:22:36 +01:00
parent 654d2ab63d
commit 142ea68dce

View File

@@ -308,7 +308,9 @@ def price_to_precision(
decimal_to_precision(
price,
rounding_mode=rounding_mode,
precision=price_precision,
precision=int(price_precision)
if precisionMode != TICK_SIZE
else price_precision,
counting_mode=precisionMode,
)
)