Merge pull request #2655 from freqtrade/avoid_keyerror_backtest

Use first pair of pairlist to get fee
This commit is contained in:
hroff-1902
2019-12-14 23:10:40 +03:00
committed by GitHub
5 changed files with 6 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ class Backtesting:
if config.get('fee'):
self.fee = config['fee']
else:
self.fee = self.exchange.get_fee()
self.fee = self.exchange.get_fee(symbol=self.config['exchange']['pair_whitelist'][0])
if self.config.get('runmode') != RunMode.HYPEROPT:
self.dataprovider = DataProvider(self.config, self.exchange)