Don't load leverage tiers when not necessary

This commit is contained in:
Matthias
2022-07-23 19:56:38 +02:00
parent 7682c9ace7
commit 2eb1d18c2a
5 changed files with 17 additions and 9 deletions

View File

@@ -84,7 +84,8 @@ class Backtesting:
self.processed_dfs: Dict[str, Dict] = {}
self._exchange_name = self.config['exchange']['name']
self.exchange = ExchangeResolver.load_exchange(self._exchange_name, self.config)
self.exchange = ExchangeResolver.load_exchange(
self._exchange_name, self.config, load_leverage_tiers=True)
self.dataprovider = DataProvider(self.config, self.exchange)
if self.config.get('strategy_list'):