Skip to content

[pull] develop from freqtrade:develop #1298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Further ENV recommendations to config schema
  • Loading branch information
xmatthias committed May 20, 2025
commit ad5d2a36bcea6042dbce4e26bedf3b09b25054a3
7 changes: 5 additions & 2 deletions build_helpers/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
23 changes: 18 additions & 5 deletions freqtrade/config_schema/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,16 @@
},
"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": {
Expand Down Expand Up @@ -576,8 +581,11 @@
"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},
Expand All @@ -589,7 +597,12 @@
"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"},
Expand Down