feat: more config schema descriptions (telegram)
This commit is contained in:
@@ -503,29 +503,63 @@ CONF_SCHEMA = {
|
|||||||
"telegram": {
|
"telegram": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {"type": "boolean"},
|
"enabled": {
|
||||||
"token": {"type": "string"},
|
"description": "Enable Telegram notifications.",
|
||||||
"chat_id": {"type": "string"},
|
"type": "boolean",
|
||||||
"allow_custom_messages": {"type": "boolean", "default": True},
|
},
|
||||||
"balance_dust_level": {"type": "number", "minimum": 0.0},
|
"token": {"description": "Telegram bot token.", "type": "string"},
|
||||||
|
"chat_id": {
|
||||||
|
"description": "Telegram chat ID",
|
||||||
|
"type": "string",
|
||||||
|
},
|
||||||
|
"allow_custom_messages": {
|
||||||
|
"description": "Allow sending custom messages from the Strategy.",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": True,
|
||||||
|
},
|
||||||
|
"balance_dust_level": {
|
||||||
|
"description": "Minimum balance level to consider as dust.",
|
||||||
|
"type": "number",
|
||||||
|
"minimum": 0.0,
|
||||||
|
},
|
||||||
"notification_settings": {
|
"notification_settings": {
|
||||||
|
"description": "Settings for different types of notifications.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"default": {},
|
"default": {},
|
||||||
"properties": {
|
"properties": {
|
||||||
"status": {"type": "string", "enum": TELEGRAM_SETTING_OPTIONS},
|
"status": {
|
||||||
"warning": {"type": "string", "enum": TELEGRAM_SETTING_OPTIONS},
|
"description": "Telegram setting for status updates.",
|
||||||
"startup": {"type": "string", "enum": TELEGRAM_SETTING_OPTIONS},
|
"type": "string",
|
||||||
"entry": {"type": "string", "enum": TELEGRAM_SETTING_OPTIONS},
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
|
},
|
||||||
|
"warning": {
|
||||||
|
"description": "Telegram setting for warnings.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
|
},
|
||||||
|
"startup": {
|
||||||
|
"description": "Telegram setting for startup messages.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
|
},
|
||||||
|
"entry": {
|
||||||
|
"description": "Telegram setting for entry signals.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
|
},
|
||||||
"entry_fill": {
|
"entry_fill": {
|
||||||
|
"description": "Telegram setting for entry fill signals.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
"default": "off",
|
"default": "off",
|
||||||
},
|
},
|
||||||
"entry_cancel": {
|
"entry_cancel": {
|
||||||
|
"description": "Telegram setting for entry cancel signals.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
},
|
},
|
||||||
"exit": {
|
"exit": {
|
||||||
|
"description": "Telegram setting for exit signals.",
|
||||||
"type": ["string", "object"],
|
"type": ["string", "object"],
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -533,34 +567,34 @@ CONF_SCHEMA = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"exit_fill": {
|
"exit_fill": {
|
||||||
|
"description": "Telegram setting for exit fill signals.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
"default": "on",
|
"default": "on",
|
||||||
},
|
},
|
||||||
"exit_cancel": {"type": "string", "enum": TELEGRAM_SETTING_OPTIONS},
|
"exit_cancel": {
|
||||||
|
"description": "Telegram setting for exit cancel signals.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
|
},
|
||||||
"protection_trigger": {
|
"protection_trigger": {
|
||||||
|
"description": "Telegram setting for protection triggers.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
"default": "on",
|
"default": "on",
|
||||||
},
|
},
|
||||||
"protection_trigger_global": {
|
"protection_trigger_global": {
|
||||||
"type": "string",
|
"description": "Telegram setting for global protection triggers.",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
|
||||||
"default": "on",
|
|
||||||
},
|
|
||||||
"show_candle": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["off", "ohlc"],
|
|
||||||
"default": "off",
|
|
||||||
},
|
|
||||||
"strategy_msg": {
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": TELEGRAM_SETTING_OPTIONS,
|
"enum": TELEGRAM_SETTING_OPTIONS,
|
||||||
"default": "on",
|
"default": "on",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"reload": {"type": "boolean"},
|
"reload": {
|
||||||
|
"description": "Add Reload button to certain messages.",
|
||||||
|
"type": "boolean",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"required": ["enabled", "token", "chat_id"],
|
"required": ["enabled", "token", "chat_id"],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user