removed unnecessary casting to int()
This commit is contained in:
parent
7ac55e5415
commit
5626ca5a06
@ -61,7 +61,7 @@ class AgeFilter(IPairList):
|
|||||||
if not needed_pairs:
|
if not needed_pairs:
|
||||||
return pairlist
|
return pairlist
|
||||||
|
|
||||||
since_ms = int(arrow.utcnow()
|
since_ms = (arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._min_days_listed - 1)
|
.shift(days=-self._min_days_listed - 1)
|
||||||
.int_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
|
@ -69,7 +69,7 @@ class VolatilityFilter(IPairList):
|
|||||||
"""
|
"""
|
||||||
needed_pairs = [(p, '1d') for p in pairlist if p not in self._pair_cache]
|
needed_pairs = [(p, '1d') for p in pairlist if p not in self._pair_cache]
|
||||||
|
|
||||||
since_ms = int(arrow.utcnow()
|
since_ms = (arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._days - 1)
|
.shift(days=-self._days - 1)
|
||||||
.int_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
|
@ -62,7 +62,7 @@ class RangeStabilityFilter(IPairList):
|
|||||||
"""
|
"""
|
||||||
needed_pairs = [(p, '1d') for p in pairlist if p not in self._pair_cache]
|
needed_pairs = [(p, '1d') for p in pairlist if p not in self._pair_cache]
|
||||||
|
|
||||||
since_ms = int(arrow.utcnow()
|
since_ms = (arrow.utcnow()
|
||||||
.floor('day')
|
.floor('day')
|
||||||
.shift(days=-self._days - 1)
|
.shift(days=-self._days - 1)
|
||||||
.int_timestamp) * 1000
|
.int_timestamp) * 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user