mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
feat: Further ENV recommendations to config schema
This commit is contained in:
@@ -610,11 +610,11 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"chat_id": {
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"topic_id": {
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"authorized_users": {
|
"authorized_users": {
|
||||||
@@ -773,9 +773,11 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {
|
"enabled": {
|
||||||
|
"description": "Enable webhook notifications.",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
|
"description": "Webhook URL. Recommended to be set via environment variable FREQTRADE__WEBHOOK__URL",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"format": {
|
"format": {
|
||||||
@@ -853,6 +855,7 @@
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"webhook_url": {
|
"webhook_url": {
|
||||||
|
"description": "Discord webhook URL. Recommended to be set via environment variable FREQTRADE__DISCORD__WEBHOOK_URL",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"exit_fill": {
|
"exit_fill": {
|
||||||
|
|||||||
@@ -470,11 +470,16 @@ CONF_SCHEMA = {
|
|||||||
},
|
},
|
||||||
"token": {"description": "Telegram bot token.", "type": "string"},
|
"token": {"description": "Telegram bot token.", "type": "string"},
|
||||||
"chat_id": {
|
"chat_id": {
|
||||||
"description": "Telegram chat or group ID",
|
"description": (
|
||||||
|
f"Telegram chat or group ID. {__VIA_ENV} FREQTRADE__TELEGRAM__CHAT_ID"
|
||||||
|
),
|
||||||
"type": "string",
|
"type": "string",
|
||||||
},
|
},
|
||||||
"topic_id": {
|
"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",
|
"type": "string",
|
||||||
},
|
},
|
||||||
"authorized_users": {
|
"authorized_users": {
|
||||||
@@ -576,8 +581,11 @@ CONF_SCHEMA = {
|
|||||||
"description": "Webhook settings.",
|
"description": "Webhook settings.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {"type": "boolean"},
|
"enabled": {"description": "Enable webhook notifications.", "type": "boolean"},
|
||||||
"url": {"type": "string"},
|
"url": {
|
||||||
|
"description": f"Webhook URL. {__VIA_ENV} FREQTRADE__WEBHOOK__URL",
|
||||||
|
"type": "string",
|
||||||
|
},
|
||||||
"format": {"type": "string", "enum": WEBHOOK_FORMAT_OPTIONS, "default": "form"},
|
"format": {"type": "string", "enum": WEBHOOK_FORMAT_OPTIONS, "default": "form"},
|
||||||
"retries": {"type": "integer", "minimum": 0},
|
"retries": {"type": "integer", "minimum": 0},
|
||||||
"retry_delay": {"type": "number", "minimum": 0},
|
"retry_delay": {"type": "number", "minimum": 0},
|
||||||
@@ -589,7 +597,12 @@ CONF_SCHEMA = {
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {"type": "boolean"},
|
"enabled": {"type": "boolean"},
|
||||||
"webhook_url": {"type": "string"},
|
"webhook_url": {
|
||||||
|
"description": (
|
||||||
|
f"Discord webhook URL. {__VIA_ENV} FREQTRADE__DISCORD__WEBHOOK_URL"
|
||||||
|
),
|
||||||
|
"type": "string",
|
||||||
|
},
|
||||||
"exit_fill": {
|
"exit_fill": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "object"},
|
"items": {"type": "object"},
|
||||||
|
|||||||
Reference in New Issue
Block a user