adding edge configuration to cli

This commit is contained in:
misagh
2018-11-14 12:53:20 +01:00
parent cf974168e9
commit 95cbbf1cb5
3 changed files with 47 additions and 3 deletions

View File

@@ -48,6 +48,7 @@ class EdgeCli(object):
self.strategy = StrategyResolver(self.config).strategy
self.edge = Edge(config, self.exchange, self.strategy)
self.edge._refresh_pairs = self.config.get('refresh_pairs', False)
def start(self) -> None:
self.edge.calculate()
@@ -80,7 +81,7 @@ def start(args: Namespace) -> None:
# Initialize configuration
config = setup_configuration(args)
logger.info('Starting freqtrade in Edge mode')
print('edge talking here...')
# Initialize Edge object
edge_cli = EdgeCli(config)
edge_cli.start()