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:
@@ -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])
|
||||
|
@@ -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'])
|
||||
|
Reference in New Issue
Block a user