mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
constants: make "orderflow" fields required
This commit is contained in:
parent
d5361d84fa
commit
f075d728c5
|
@ -533,6 +533,7 @@ CONF_SCHEMA = {
|
|||
"imbalance_volume": {"type": "number", "minimum": 0},
|
||||
"imbalance_ratio": {"type": "number", "minimum": 0.0},
|
||||
},
|
||||
"required": ["scale", "stacked_imbalance_range", "imbalance_volume", "imbalance_ratio"],
|
||||
},
|
||||
},
|
||||
"definitions": {
|
||||
|
|
|
@ -1087,6 +1087,9 @@ def test__validate_orderflow(default_conf) -> None:
|
|||
{
|
||||
"orderflow": {
|
||||
"scale": 0.5,
|
||||
"stacked_imbalance_range": 3,
|
||||
"imbalance_volume": 100,
|
||||
"imbalance_ratio": 3,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user