Add verification for volatilityfilter
This commit is contained in:
@@ -47,6 +47,9 @@ class VolatilityFilter(IPairList):
|
|||||||
if self._days > candle_limit:
|
if self._days > candle_limit:
|
||||||
raise OperationalException("VolatilityFilter requires lookback_days to not "
|
raise OperationalException("VolatilityFilter requires lookback_days to not "
|
||||||
f"exceed exchange max request size ({candle_limit})")
|
f"exceed exchange max request size ({candle_limit})")
|
||||||
|
if self._sort_direction not in [None, 'asc', 'desc']:
|
||||||
|
raise OperationalException("VolatilityFilter requires sort_direction to be "
|
||||||
|
"either None (undefined), 'asc' or 'desc'")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def needstickers(self) -> bool:
|
def needstickers(self) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user