Use first pair of pairlist to get fee

Use this instead of hardcoded ETH/BTC - so backtesting works with
exchanges without ETH/BTC pair
This commit is contained in:
Matthias 2019-12-14 12:52:33 +01:00
parent 6c4f424887
commit a48c0ad868
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class Edge:
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])
def calculate(self) -> bool:
pairs = self.config['exchange']['pair_whitelist']

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)