Move edge bot_loop_start to edge_cli

(otherwise it's called twice when running trade mode with edge on).
This commit is contained in:
Matthias
2022-04-30 08:55:07 +02:00
parent 8756e7d9a1
commit 09b74cebce
3 changed files with 4 additions and 5 deletions

View File

@@ -91,8 +91,6 @@ class Edge:
except IndexError:
self.fee = None
strategy.bot_start()
def calculate(self, pairs: List[str]) -> bool:
if self.fee is None and pairs:
self.fee = self.exchange.get_fee(pairs[0])

View File

@@ -44,6 +44,7 @@ class EdgeCli:
self.edge._timerange = TimeRange.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
self.strategy.bot_start()
def start(self) -> None:
result = self.edge.calculate(self.config['exchange']['pair_whitelist'])