From c9718de24c41b480a8007593d4a6d0ec24673692 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 6 Nov 2024 20:07:34 +0100 Subject: [PATCH] feat: Update config_schema with support for exit_fill --- build_helpers/schema.json | 16 +++++++++++----- freqtrade/configuration/config_schema.py | 7 +++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/build_helpers/schema.json b/build_helpers/schema.json index 6227829d9..e12b0bf0d 100644 --- a/build_helpers/schema.json +++ b/build_helpers/schema.json @@ -682,12 +682,18 @@ }, "exit_fill": { "description": "Telegram setting for exit fill signals.", - "type": "string", - "enum": [ - "on", - "off", - "silent" + "type": [ + "string", + "object" ], + "additionalProperties": { + "type": "string", + "enum": [ + "on", + "off", + "silent" + ] + }, "default": "on" }, "exit_cancel": { diff --git a/freqtrade/configuration/config_schema.py b/freqtrade/configuration/config_schema.py index 2106d928d..30f1f6f28 100644 --- a/freqtrade/configuration/config_schema.py +++ b/freqtrade/configuration/config_schema.py @@ -517,8 +517,11 @@ CONF_SCHEMA = { }, "exit_fill": { "description": "Telegram setting for exit fill signals.", - "type": "string", - "enum": TELEGRAM_SETTING_OPTIONS, + "type": ["string", "object"], + "additionalProperties": { + "type": "string", + "enum": TELEGRAM_SETTING_OPTIONS, + }, "default": "on", }, "exit_cancel": {