From 142ea68dceb853d967bb04dec39d63acd1981487 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 8 Dec 2024 14:22:36 +0100 Subject: [PATCH] chore: fix oddity of price_to_precision --- freqtrade/exchange/exchange_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange_utils.py b/freqtrade/exchange/exchange_utils.py index 1c8a30001..1c9894242 100644 --- a/freqtrade/exchange/exchange_utils.py +++ b/freqtrade/exchange/exchange_utils.py @@ -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, ) )