From 15a1c59a9130ebf63b508e0c22557506b342e2f9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 16 Aug 2022 10:15:10 +0200 Subject: [PATCH] Backtesting should cache precisionMode --- freqtrade/optimize/backtesting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index c8b6ee97d..c0d1a8a2f 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -131,6 +131,7 @@ class Backtesting: self.fee = config['fee'] else: self.fee = self.exchange.get_fee(symbol=self.pairlists.whitelist[0]) + self.precision_mode = self.exchange.precisionMode self.timerange = TimeRange.parse_timerange( None if self.config.get('timerange') is None else str(self.config.get('timerange'))) @@ -851,7 +852,7 @@ class Backtesting: # interest_rate=interest_rate, amount_precision=self.exchange.get_precision_amount(pair), price_precision=self.exchange.get_precision_price(pair), - precision_mode=self.exchange.precisionMode, + precision_mode=self.self.precision_mode, orders=[], )