log if using cached data
This commit is contained in:
parent
36f05af79a
commit
8a0fc888d6
@ -368,6 +368,7 @@ class Exchange(object):
|
|||||||
self._pairs_last_refresh_time.get(pair, 0) + interval_in_sec >=
|
self._pairs_last_refresh_time.get(pair, 0) + interval_in_sec >=
|
||||||
int(time.time())):
|
int(time.time())):
|
||||||
data = self._cached_klines[pair]
|
data = self._cached_klines[pair]
|
||||||
|
logger.debug("Using cached klines data for %s ...", pair)
|
||||||
else:
|
else:
|
||||||
data = await self._api_async.fetch_ohlcv(pair, timeframe=tick_interval,
|
data = await self._api_async.fetch_ohlcv(pair, timeframe=tick_interval,
|
||||||
since=since_ms)
|
since=since_ms)
|
||||||
|
Loading…
Reference in New Issue
Block a user