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

@@ -77,8 +77,10 @@ class Edge:
self._timerange: TimeRange = TimeRange.parse_timerange("%s-" % arrow.now().shift(
days=-1 * self._since_number_of_days).format('YYYYMMDD'))
self.fee = self.exchange.get_fee()
if config.get('fee'):
self.fee = config['fee']
else:
self.fee = self.exchange.get_fee()
def calculate(self) -> bool:
pairs = self.config['exchange']['pair_whitelist']