feat: staticPairlist to warn for invalid pairs

Warnings about invalid pairs were "covered" by the implicit
filtering of `expand_pairlist()`
This commit is contained in:
Matthias 2024-09-15 09:46:47 +02:00
parent c67a9d4e84
commit 12299d4810

View File

@ -61,14 +61,13 @@ class StaticPairList(IPairList):
:param tickers: Tickers (from exchange.get_tickers). May be cached. :param tickers: Tickers (from exchange.get_tickers). May be cached.
:return: List of pairs :return: List of pairs
""" """
wl = self.verify_whitelist(
self._config["exchange"]["pair_whitelist"], logger.info, keep_invalid=True
)
if self._allow_inactive: if self._allow_inactive:
return self.verify_whitelist( return wl
self._config["exchange"]["pair_whitelist"], logger.info, keep_invalid=True
)
else: else:
return self._whitelist_for_active_markets( return self._whitelist_for_active_markets(wl)
self.verify_whitelist(self._config["exchange"]["pair_whitelist"], logger.info)
)
def filter_pairlist(self, pairlist: List[str], tickers: Tickers) -> List[str]: def filter_pairlist(self, pairlist: List[str], tickers: Tickers) -> List[str]:
""" """