Move .title to ExchangeResolver (it does not make sense to do this over

and over again)
This commit is contained in:
Matthias
2019-06-22 16:52:14 +02:00
parent 026784efac
commit 4cbcb5f36f
6 changed files with 7 additions and 9 deletions

View File

@@ -63,8 +63,7 @@ class Backtesting(object):
self.config['dry_run'] = True
self.strategylist: List[IStrategy] = []
exchange_name = self.config.get('exchange', {}).get('name').title()
self.exchange = ExchangeResolver(exchange_name, self.config).exchange
self.exchange = ExchangeResolver(self.config['exchange']['name'], self.config).exchange
self.fee = self.exchange.get_fee()
if self.config.get('runmode') != RunMode.HYPEROPT: