mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-19 21:40:24 +00:00
chore: improve incompatibility errors
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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}."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user