From cfa591838fae993009a7e8a12dc080156642aec3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 13 Aug 2024 09:13:10 +0200 Subject: [PATCH] feat: use "precision_mode_price" where applicable --- freqtrade/exchange/exchange.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index dc9c1d0bb..53dff0066 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -918,7 +918,10 @@ class Exchange: For stoploss calculations, must use ROUND_UP for longs, and ROUND_DOWN for shorts. """ return price_to_precision( - price, self.get_precision_price(pair), self.precisionMode, rounding_mode=rounding_mode + price, + self.get_precision_price(pair), + self.precision_mode_price, + rounding_mode=rounding_mode, ) def price_get_one_pip(self, pair: str, price: float) -> float: