add --fee to change fees to other values

This commit is contained in:
Matthias
2019-10-05 15:29:00 +02:00
parent 2c0d2c1532
commit 0664a8c0e6
5 changed files with 22 additions and 6 deletions

View File

@@ -63,9 +63,12 @@ class Backtesting:
self.config['exchange']['uid'] = ''
self.config['dry_run'] = True
self.strategylist: List[IStrategy] = []
self.exchange = ExchangeResolver(self.config['exchange']['name'], self.config).exchange
self.fee = self.exchange.get_fee()
if config.get('fee'):
self.fee = config['fee']
else:
self.fee = self.exchange.get_fee()
if self.config.get('runmode') != RunMode.HYPEROPT:
self.dataprovider = DataProvider(self.config, self.exchange)