chore: improve incompatibility errors

This commit is contained in:
Matthias
2026-01-10 17:15:04 +01:00
parent faa5c4be39
commit 9cbb8ec1c2
3 changed files with 11 additions and 9 deletions

View File

@@ -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(

View File

@@ -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):

View File

@@ -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}."
)