skip the check for active markets with flag for existing StaticPairList
This commit is contained in:
parent
2640dfee93
commit
2424ac94c2
@ -24,6 +24,8 @@ class StaticPairList(IPairList):
|
|||||||
raise OperationalException(f"{self.name} can only be used in the first position "
|
raise OperationalException(f"{self.name} can only be used in the first position "
|
||||||
"in the list of Pairlist Handlers.")
|
"in the list of Pairlist Handlers.")
|
||||||
|
|
||||||
|
self._allow_inactive = self._pairlistconfig.get('allow_inactive', False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def needstickers(self) -> bool:
|
def needstickers(self) -> bool:
|
||||||
"""
|
"""
|
||||||
@ -47,6 +49,9 @@ class StaticPairList(IPairList):
|
|||||||
:param tickers: Tickers (from exchange.get_tickers()).
|
:param tickers: Tickers (from exchange.get_tickers()).
|
||||||
:return: List of pairs
|
:return: List of pairs
|
||||||
"""
|
"""
|
||||||
|
if self._allow_inactive:
|
||||||
|
return self._config['exchange']['pair_whitelist']
|
||||||
|
else:
|
||||||
return self._whitelist_for_active_markets(self._config['exchange']['pair_whitelist'])
|
return self._whitelist_for_active_markets(self._config['exchange']['pair_whitelist'])
|
||||||
|
|
||||||
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:
|
def filter_pairlist(self, pairlist: List[str], tickers: Dict) -> List[str]:
|
||||||
|
Loading…
Reference in New Issue
Block a user