Remove further usages of int(int_timestamp)
This commit is contained in:
parent
1682578a39
commit
10998eb0fa
@ -194,8 +194,8 @@ def _download_pair_history(datadir: Path,
|
|||||||
new_data = exchange.get_historic_ohlcv(pair=pair,
|
new_data = exchange.get_historic_ohlcv(pair=pair,
|
||||||
timeframe=timeframe,
|
timeframe=timeframe,
|
||||||
since_ms=since_ms if since_ms else
|
since_ms=since_ms if since_ms else
|
||||||
int(arrow.utcnow().shift(
|
arrow.utcnow().shift(
|
||||||
days=-new_pairs_days).float_timestamp) * 1000
|
days=-new_pairs_days).int_timestamp * 1000
|
||||||
)
|
)
|
||||||
# TODO: Maybe move parsing to exchange class (?)
|
# TODO: Maybe move parsing to exchange class (?)
|
||||||
new_dataframe = ohlcv_to_dataframe(new_data, timeframe, pair,
|
new_dataframe = ohlcv_to_dataframe(new_data, timeframe, pair,
|
||||||
@ -272,7 +272,7 @@ def _download_trades_history(exchange: Exchange,
|
|||||||
if timerange.stoptype == 'date':
|
if timerange.stoptype == 'date':
|
||||||
until = timerange.stopts * 1000
|
until = timerange.stopts * 1000
|
||||||
else:
|
else:
|
||||||
since = int(arrow.utcnow().shift(days=-new_pairs_days).float_timestamp) * 1000
|
since = arrow.utcnow().shift(days=-new_pairs_days).int_timestamp * 1000
|
||||||
|
|
||||||
trades = data_handler.trades_load(pair)
|
trades = data_handler.trades_load(pair)
|
||||||
|
|
||||||
|
@ -578,7 +578,7 @@ class Exchange:
|
|||||||
'side': side,
|
'side': side,
|
||||||
'remaining': _amount,
|
'remaining': _amount,
|
||||||
'datetime': arrow.utcnow().isoformat(),
|
'datetime': arrow.utcnow().isoformat(),
|
||||||
'timestamp': int(arrow.utcnow().int_timestamp * 1000),
|
'timestamp': arrow.utcnow().int_timestamp * 1000,
|
||||||
'status': "closed" if ordertype == "market" else "open",
|
'status': "closed" if ordertype == "market" else "open",
|
||||||
'fee': None,
|
'fee': None,
|
||||||
'info': {}
|
'info': {}
|
||||||
|
@ -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().int_timestamp) * 1000
|
self._symbolsChecked[pair] = 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 "
|
||||||
|
Loading…
Reference in New Issue
Block a user