Uppercase TimeInForce (align with ccxt)
This commit is contained in:
@@ -275,8 +275,8 @@ def test_strategy_override_order_tif(caplog, default_conf):
|
||||
caplog.set_level(logging.INFO)
|
||||
|
||||
order_time_in_force = {
|
||||
'entry': 'fok',
|
||||
'exit': 'gtc',
|
||||
'entry': 'FOK',
|
||||
'exit': 'GTC',
|
||||
}
|
||||
|
||||
default_conf.update({
|
||||
@@ -290,11 +290,11 @@ def test_strategy_override_order_tif(caplog, default_conf):
|
||||
assert strategy.order_time_in_force[method] == order_time_in_force[method]
|
||||
|
||||
assert log_has("Override strategy 'order_time_in_force' with value in config file:"
|
||||
" {'entry': 'fok', 'exit': 'gtc'}.", caplog)
|
||||
" {'entry': 'FOK', 'exit': 'GTC'}.", caplog)
|
||||
|
||||
default_conf.update({
|
||||
'strategy': CURRENT_TEST_STRATEGY,
|
||||
'order_time_in_force': {'entry': 'fok'}
|
||||
'order_time_in_force': {'entry': 'FOK'}
|
||||
})
|
||||
# Raise error for invalid configuration
|
||||
with pytest.raises(ImportError,
|
||||
|
Reference in New Issue
Block a user