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

@@ -250,6 +250,7 @@ def test_load_config_with_params(default_conf, mocker) -> None:
'--strategy', 'TestStrategy',
'--strategy-path', '/some/path',
'--db-url', 'sqlite:///someurl',
'--cancel-open-orders-on-exit',
]
args = Arguments(arglist).get_parsed_arg()
configuration = Configuration(args)
@@ -258,6 +259,7 @@ def test_load_config_with_params(default_conf, mocker) -> None:
assert validated_conf.get('strategy') == 'TestStrategy'
assert validated_conf.get('strategy_path') == '/some/path'
assert validated_conf.get('db_url') == 'sqlite:///someurl'
assert validated_conf.get('cancel_open_orders_on_exit') is True
# Test conf provided db_url prod
conf = default_conf.copy()