AgeFilter, RangeStabilityFilter, VolatilityFilter
changed `float_timestamp` to `int_timestamp`
This commit is contained in:
parent
d758b0ccab
commit
7ac55e5415
@ -64,7 +64,7 @@ class AgeFilter(IPairList):
|
|||||||
since_ms = int(arrow.utcnow()
|
since_ms = int(arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._min_days_listed - 1)
|
.shift(days=-self._min_days_listed - 1)
|
||||||
.float_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
candles = self._exchange.refresh_latest_ohlcv(needed_pairs, since_ms=since_ms, cache=False)
|
candles = self._exchange.refresh_latest_ohlcv(needed_pairs, since_ms=since_ms, cache=False)
|
||||||
if self._enabled:
|
if self._enabled:
|
||||||
for p in deepcopy(pairlist):
|
for p in deepcopy(pairlist):
|
||||||
@ -89,7 +89,7 @@ class AgeFilter(IPairList):
|
|||||||
if len(daily_candles) >= self._min_days_listed:
|
if len(daily_candles) >= self._min_days_listed:
|
||||||
# We have fetched at least the minimum required number of daily candles
|
# We have fetched at least the minimum required number of daily candles
|
||||||
# Add to cache, store the time we last checked this symbol
|
# Add to cache, store the time we last checked this symbol
|
||||||
self._symbolsChecked[pair] = int(arrow.utcnow().float_timestamp) * 1000
|
self._symbolsChecked[pair] = int(arrow.utcnow().int_timestamp) * 1000
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.log_once(f"Removed {pair} from whitelist, because age "
|
self.log_once(f"Removed {pair} from whitelist, because age "
|
||||||
|
@ -72,7 +72,7 @@ class VolatilityFilter(IPairList):
|
|||||||
since_ms = int(arrow.utcnow()
|
since_ms = int(arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._days - 1)
|
.shift(days=-self._days - 1)
|
||||||
.float_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
# Get all candles
|
# Get all candles
|
||||||
candles = {}
|
candles = {}
|
||||||
if needed_pairs:
|
if needed_pairs:
|
||||||
|
@ -65,7 +65,7 @@ class RangeStabilityFilter(IPairList):
|
|||||||
since_ms = int(arrow.utcnow()
|
since_ms = int(arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._days - 1)
|
.shift(days=-self._days - 1)
|
||||||
.float_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
# Get all candles
|
# Get all candles
|
||||||
candles = {}
|
candles = {}
|
||||||
if needed_pairs:
|
if needed_pairs:
|
||||||
|
Loading…
Reference in New Issue
Block a user