feat: more config schema descriptions

This commit is contained in:
Matthias
2024-07-25 20:52:05 +02:00
parent 14a20c703b
commit aaac080dfb

View File

@@ -501,6 +501,7 @@ CONF_SCHEMA = {
}, },
}, },
"telegram": { "telegram": {
"description": "Telegram settings.",
"type": "object", "type": "object",
"properties": { "properties": {
"enabled": { "enabled": {
@@ -599,6 +600,7 @@ CONF_SCHEMA = {
"required": ["enabled", "token", "chat_id"], "required": ["enabled", "token", "chat_id"],
}, },
"webhook": { "webhook": {
"description": "Webhook settings.",
"type": "object", "type": "object",
"properties": { "properties": {
"enabled": {"type": "boolean"}, "enabled": {"type": "boolean"},
@@ -610,6 +612,7 @@ CONF_SCHEMA = {
}, },
}, },
"discord": { "discord": {
"description": "Discord settings.",
"type": "object", "type": "object",
"properties": { "properties": {
"enabled": {"type": "boolean"}, "enabled": {"type": "boolean"},
@@ -755,17 +758,51 @@ CONF_SCHEMA = {
"enum": AVAILABLE_DATAHANDLERS, "enum": AVAILABLE_DATAHANDLERS,
"default": "feather", "default": "feather",
}, },
"position_adjustment_enable": {"type": "boolean"}, "position_adjustment_enable": {
"max_entry_position_adjustment": {"type": ["integer", "number"], "minimum": -1}, "description": "Enable position adjustment.",
"type": "boolean",
},
"max_entry_position_adjustment": {
"description": "Maximum entry position adjustment allowed.",
"type": ["integer", "number"],
"minimum": -1,
},
"orderflow": { "orderflow": {
"description": "Settings related to order flow.",
"type": "object", "type": "object",
"properties": { "properties": {
"cache_size": {"type": "number", "minimum": 1, "default": 1500}, "cache_size": {
"max_candles": {"type": "number", "minimum": 1, "default": 1500}, "description": "Size of the cache for order flow data.",
"scale": {"type": "number", "minimum": 0.0}, "type": "number",
"stacked_imbalance_range": {"type": "number", "minimum": 0}, "minimum": 1,
"imbalance_volume": {"type": "number", "minimum": 0}, "default": 1500,
"imbalance_ratio": {"type": "number", "minimum": 0.0}, },
"max_candles": {
"description": "Maximum number of candles to consider.",
"type": "number",
"minimum": 1,
"default": 1500,
},
"scale": {
"description": "Scale factor for order flow data.",
"type": "number",
"minimum": 0.0,
},
"stacked_imbalance_range": {
"description": "Range for stacked imbalance.",
"type": "number",
"minimum": 0,
},
"imbalance_volume": {
"description": "Volume threshold for imbalance.",
"type": "number",
"minimum": 0,
},
"imbalance_ratio": {
"description": "Ratio threshold for imbalance.",
"type": "number",
"minimum": 0.0,
},
}, },
"required": [ "required": [
"max_candles", "max_candles",