From 1ad0e7e365b219bd33993ba65aba66b03d29f286 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 13 Aug 2025 13:08:41 +0200 Subject: [PATCH] fix: force one pairlist handler via config closes #12112 --- build_helpers/schema.json | 1 + freqtrade/config_schema/config_schema.py | 3 +++ freqtrade/configuration/configuration.py | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build_helpers/schema.json b/build_helpers/schema.json index 58908aede..663a6191d 100644 --- a/build_helpers/schema.json +++ b/build_helpers/schema.json @@ -572,6 +572,7 @@ "pairlists": { "description": "Configuration for pairlists.", "type": "array", + "minItems": 1, "items": { "type": "object", "properties": { diff --git a/freqtrade/config_schema/config_schema.py b/freqtrade/config_schema/config_schema.py index 644a5d7c9..8274c161b 100644 --- a/freqtrade/config_schema/config_schema.py +++ b/freqtrade/config_schema/config_schema.py @@ -453,6 +453,7 @@ CONF_SCHEMA = { "pairlists": { "description": "Configuration for pairlists.", "type": "array", + "minItems": 1, "items": { "type": "object", "properties": { @@ -1381,6 +1382,7 @@ SCHEMA_TRADE_REQUIRED = [ "entry_pricing", "stoploss", "minimal_roi", + "pairlists", "internals", "dataformat_ohlcv", "dataformat_trades", @@ -1390,6 +1392,7 @@ SCHEMA_BACKTEST_REQUIRED = [ "exchange", "stake_currency", "stake_amount", + "pairlists", "dry_run_wallet", "dataformat_ohlcv", "dataformat_trades", diff --git a/freqtrade/configuration/configuration.py b/freqtrade/configuration/configuration.py index c5e9b56e9..e2601ee48 100644 --- a/freqtrade/configuration/configuration.py +++ b/freqtrade/configuration/configuration.py @@ -84,9 +84,6 @@ class Configuration: if "internals" not in config: config["internals"] = {} - if "pairlists" not in config: - config["pairlists"] = [] - # Keep a copy of the original configuration file config["original_config"] = deepcopy(config)