From 9cbb8ec1c220867a3489a55c46e917a259ab425b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 10 Jan 2026 17:15:04 +0100 Subject: [PATCH] chore: improve incompatibility errors --- freqtrade/plugins/pairlist/PercentChangePairList.py | 6 +++--- freqtrade/plugins/pairlist/VolumePairList.py | 10 ++++++---- freqtrade/plugins/pairlistmanager.py | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/freqtrade/plugins/pairlist/PercentChangePairList.py b/freqtrade/plugins/pairlist/PercentChangePairList.py index b4386f6ac..9deefdfd4 100644 --- a/freqtrade/plugins/pairlist/PercentChangePairList.py +++ b/freqtrade/plugins/pairlist/PercentChangePairList.py @@ -84,9 +84,9 @@ class PercentChangePairList(IPairList): and self._exchange.get_option("tickers_have_percentage") ): raise OperationalException( - "Exchange does not support dynamic whitelist in this configuration. " - "Please edit your config and either remove PercentChangePairList, " - "or switch to using candles. and restart the bot." + f"Exchange {self._exchange.name} does not support dynamic whitelist in this " + "configuration. Please edit your config and either remove PercentChangePairList, " + "or switch to using candles and restart the bot." ) candle_limit = self._exchange.ohlcv_candle_limit( diff --git a/freqtrade/plugins/pairlist/VolumePairList.py b/freqtrade/plugins/pairlist/VolumePairList.py index 6d4eb5dac..b03688039 100644 --- a/freqtrade/plugins/pairlist/VolumePairList.py +++ b/freqtrade/plugins/pairlist/VolumePairList.py @@ -8,7 +8,7 @@ import logging from datetime import timedelta from typing import Any, Literal -from freqtrade.constants import ListPairsWithTimeframes +from freqtrade.constants import DOCS_LINK, ListPairsWithTimeframes from freqtrade.exceptions import OperationalException from freqtrade.exchange import timeframe_to_minutes, timeframe_to_prev_date from freqtrade.exchange.exchange_types import Tickers @@ -78,9 +78,11 @@ class VolumePairList(IPairList): and self._exchange.get_option("tickers_have_quoteVolume") ): raise OperationalException( - "Exchange does not support dynamic whitelist in this configuration. " - "Please edit your config and either remove Volumepairlist, " - "or switch to using candles. and restart the bot." + f"Exchange {self._exchange.name} does not support dynamic whitelist in this " + "configuration. Please edit your config and either remove Volumepairlist, " + "or switch to using candles and restart the bot. " + f"You can find more information about this in the documentation under " + f"{DOCS_LINK}/plugins/#volumepairlist-advanced-mode ." ) if not self._validate_keys(self._sort_key): diff --git a/freqtrade/plugins/pairlistmanager.py b/freqtrade/plugins/pairlistmanager.py index 8f7eff61f..e8cfdd581 100644 --- a/freqtrade/plugins/pairlistmanager.py +++ b/freqtrade/plugins/pairlistmanager.py @@ -51,8 +51,8 @@ class PairListManager(LoggingMixin): invalid = ". ".join([p.name for p in self._pairlist_handlers if p.needstickers]) raise OperationalException( - "Exchange does not support fetchTickers, therefore the following pairlists " - "cannot be used. Please edit your config and restart the bot.\n" + f"Exchange {self._exchange.name} does not support fetchTickers, therefore the " + "following pairlists cannot be used. Please edit your config and restart the bot.\n" f"{invalid}." )