mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
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:
parent
c67a9d4e84
commit
12299d4810
|
@ -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]:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user