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