diff --git a/build_helpers/schema.json b/build_helpers/schema.json index 542c336a5..a7323ddfa 100644 --- a/build_helpers/schema.json +++ b/build_helpers/schema.json @@ -610,11 +610,11 @@ "type": "string" }, "chat_id": { - "description": "Telegram chat or group ID", + "description": "Telegram chat or group ID. Recommended to be set via environment variable FREQTRADE__TELEGRAM__CHAT_ID", "type": "string" }, "topic_id": { - "description": "Telegram topic ID - only applicable for group chats", + "description": "Telegram topic ID - only applicable for group chats. Recommended to be set via environment variable FREQTRADE__TELEGRAM__TOPIC_ID", "type": "string" }, "authorized_users": { @@ -773,9 +773,11 @@ "type": "object", "properties": { "enabled": { + "description": "Enable webhook notifications.", "type": "boolean" }, "url": { + "description": "Webhook URL. Recommended to be set via environment variable FREQTRADE__WEBHOOK__URL", "type": "string" }, "format": { @@ -853,6 +855,7 @@ "type": "boolean" }, "webhook_url": { + "description": "Discord webhook URL. Recommended to be set via environment variable FREQTRADE__DISCORD__WEBHOOK_URL", "type": "string" }, "exit_fill": { diff --git a/freqtrade/config_schema/config_schema.py b/freqtrade/config_schema/config_schema.py index 5e06b03f0..9c91d81f7 100644 --- a/freqtrade/config_schema/config_schema.py +++ b/freqtrade/config_schema/config_schema.py @@ -470,11 +470,16 @@ CONF_SCHEMA = { }, "token": {"description": "Telegram bot token.", "type": "string"}, "chat_id": { - "description": "Telegram chat or group ID", + "description": ( + f"Telegram chat or group ID. {__VIA_ENV} FREQTRADE__TELEGRAM__CHAT_ID" + ), "type": "string", }, "topic_id": { - "description": "Telegram topic ID - only applicable for group chats", + "description": ( + "Telegram topic ID - only applicable for group chats. " + f"{__VIA_ENV} FREQTRADE__TELEGRAM__TOPIC_ID" + ), "type": "string", }, "authorized_users": { @@ -576,8 +581,11 @@ CONF_SCHEMA = { "description": "Webhook settings.", "type": "object", "properties": { - "enabled": {"type": "boolean"}, - "url": {"type": "string"}, + "enabled": {"description": "Enable webhook notifications.", "type": "boolean"}, + "url": { + "description": f"Webhook URL. {__VIA_ENV} FREQTRADE__WEBHOOK__URL", + "type": "string", + }, "format": {"type": "string", "enum": WEBHOOK_FORMAT_OPTIONS, "default": "form"}, "retries": {"type": "integer", "minimum": 0}, "retry_delay": {"type": "number", "minimum": 0}, @@ -589,7 +597,12 @@ CONF_SCHEMA = { "type": "object", "properties": { "enabled": {"type": "boolean"}, - "webhook_url": {"type": "string"}, + "webhook_url": { + "description": ( + f"Discord webhook URL. {__VIA_ENV} FREQTRADE__DISCORD__WEBHOOK_URL" + ), + "type": "string", + }, "exit_fill": { "type": "array", "items": {"type": "object"},