chore: improve incompatibility errors
This commit is contained in:
@@ -84,9 +84,9 @@ class PercentChangePairList(IPairList):
|
|||||||
and self._exchange.get_option("tickers_have_percentage")
|
and self._exchange.get_option("tickers_have_percentage")
|
||||||
):
|
):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"Exchange does not support dynamic whitelist in this configuration. "
|
f"Exchange {self._exchange.name} does not support dynamic whitelist in this "
|
||||||
"Please edit your config and either remove PercentChangePairList, "
|
"configuration. Please edit your config and either remove PercentChangePairList, "
|
||||||
"or switch to using candles. and restart the bot."
|
"or switch to using candles and restart the bot."
|
||||||
)
|
)
|
||||||
|
|
||||||
candle_limit = self._exchange.ohlcv_candle_limit(
|
candle_limit = self._exchange.ohlcv_candle_limit(
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import logging
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any, Literal
|
from typing import Any, Literal
|
||||||
|
|
||||||
from freqtrade.constants import ListPairsWithTimeframes
|
from freqtrade.constants import DOCS_LINK, ListPairsWithTimeframes
|
||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
from freqtrade.exchange import timeframe_to_minutes, timeframe_to_prev_date
|
from freqtrade.exchange import timeframe_to_minutes, timeframe_to_prev_date
|
||||||
from freqtrade.exchange.exchange_types import Tickers
|
from freqtrade.exchange.exchange_types import Tickers
|
||||||
@@ -78,9 +78,11 @@ class VolumePairList(IPairList):
|
|||||||
and self._exchange.get_option("tickers_have_quoteVolume")
|
and self._exchange.get_option("tickers_have_quoteVolume")
|
||||||
):
|
):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"Exchange does not support dynamic whitelist in this configuration. "
|
f"Exchange {self._exchange.name} does not support dynamic whitelist in this "
|
||||||
"Please edit your config and either remove Volumepairlist, "
|
"configuration. Please edit your config and either remove Volumepairlist, "
|
||||||
"or switch to using candles. and restart the bot."
|
"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):
|
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])
|
invalid = ". ".join([p.name for p in self._pairlist_handlers if p.needstickers])
|
||||||
|
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"Exchange does not support fetchTickers, therefore the following pairlists "
|
f"Exchange {self._exchange.name} does not support fetchTickers, therefore the "
|
||||||
"cannot be used. Please edit your config and restart the bot.\n"
|
"following pairlists cannot be used. Please edit your config and restart the bot.\n"
|
||||||
f"{invalid}."
|
f"{invalid}."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user