mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 18:43:04 +00:00
feat: Further ENV recommendations to config schema
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user