Allow edge to use dynamic pairlists

closes #4298
This commit is contained in:
Matthias
2021-03-30 20:20:24 +02:00
parent 89cfcc8ba6
commit 2869d5368d
7 changed files with 11 additions and 33 deletions

View File

@@ -84,9 +84,8 @@ class Edge:
self.fee = self.exchange.get_fee(symbol=expand_pairlist(
self.config['exchange']['pair_whitelist'], list(self.exchange.markets))[0])
def calculate(self) -> bool:
pairs = expand_pairlist(self.config['exchange']['pair_whitelist'],
list(self.exchange.markets))
def calculate(self, pairs: List[str]) -> bool:
heartbeat = self.edge_config.get('process_throttle_secs')
if (self._last_updated > 0) and (