Implement fix for okx futures not having quoteVolume

This commit is contained in:
Matthias
2022-03-17 20:15:51 +01:00
parent a13b633c56
commit 1299a703e2
3 changed files with 7 additions and 1 deletions

View File

@@ -71,7 +71,9 @@ class VolumePairList(IPairList):
f'to at least {self._tf_in_sec} and restart the bot.'
)
if not self._use_range and not self._exchange.exchange_has('fetchTickers'):
if (not self._use_range and not (
self._exchange.exchange_has('fetchTickers')
and self._exchange._ft_has["tickers_has_quoteVolume"])):
raise OperationalException(
"Exchange does not support dynamic whitelist in this configuration. "
"Please edit your config and either remove Volumepairlist, "