Fix Tests

This commit is contained in:
Matthias
2021-11-23 17:43:37 +01:00
parent 920151934a
commit db16098981
3 changed files with 5 additions and 5 deletions

View File

@@ -212,9 +212,9 @@ class Binance(Exchange):
"""
if is_new_pair:
x = await self._async_get_candle_history(pair, timeframe, 0, candle_type)
if x and x[2] and x[2][0] and x[2][0][0] > since_ms:
if x and x[3] and x[3][0] and x[3][0][0] > since_ms:
# Set starting date to first available candle.
since_ms = x[2][0][0]
since_ms = x[3][0][0]
logger.info(f"Candle-data for {pair} available starting with "
f"{arrow.get(since_ms // 1000).isoformat()}.")

View File

@@ -1419,7 +1419,7 @@ class Exchange:
pair, timeframe, since_ms=since_ms, candle_type=candle_type))
else:
logger.debug(
"Using cached candle (OHLCV) data for pair %s, timeframe %s ...",
"Using cached candle (OHLCV) data for pair %s, timeframe %s, candleType %s ...",
pair, timeframe, candle_type
)
cached_pairs.append((pair, timeframe, candle_type))