Cancel all open orders after receiving /stop or ctrl+c

This commit is contained in:
jpribyl
2020-04-24 16:16:52 -06:00
parent 0f50449196
commit bd51cd332b
16 changed files with 124 additions and 52 deletions

View File

@@ -134,6 +134,11 @@ class Configuration:
if config['runmode'] not in TRADING_MODES:
return
if self.args.get('cancel_open_orders_on_exit', False):
config.update({
'cancel_open_orders_on_exit': self.args.get('cancel_open_orders_on_exit')
})
if config.get('dry_run', False):
logger.info('Dry run is enabled')
if config.get('db_url') in [None, constants.DEFAULT_DB_PROD_URL]: