From a5b438e41e5a8a882f4ff9ff6acfe2c7b0db372b Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 16 Aug 2022 08:43:03 +0200 Subject: [PATCH] Run price_to_precision for dry-run orders --- freqtrade/exchange/exchange.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 18598e92d..d50007dab 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1019,7 +1019,8 @@ class Exchange: time_in_force: str = 'gtc', ) -> Dict: if self._config['dry_run']: - dry_order = self.create_dry_run_order(pair, ordertype, side, amount, rate, leverage) + dry_order = self.create_dry_run_order( + pair, ordertype, side, amount, self.price_to_precision(pair, rate), leverage) return dry_order params = self._get_params(side, ordertype, leverage, reduceOnly, time_in_force)