constants: make "orderflow" fields required

This commit is contained in:
Joe Schr 2024-06-04 17:53:33 +02:00
parent d5361d84fa
commit f075d728c5
2 changed files with 4 additions and 0 deletions

View File

@ -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": {

View File

@ -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,
}
}
)