diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 52ada40fa..4e9677b35 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -2,6 +2,7 @@ Freqtrade is the main module of this bot. It contains the class Freqtrade() """ +import asyncio import copy import logging import time @@ -9,13 +10,11 @@ import traceback from datetime import datetime from typing import Any, Callable, Dict, List, Optional -import asyncio import arrow import requests from cachetools import TTLCache, cached - from freqtrade import (DependencyException, OperationalException, TemporaryError, __version__, constants, persistence) from freqtrade.exchange import Exchange @@ -135,12 +134,11 @@ class FreqtradeBot(object): """ Refresh tickers asyncronously and return the result. """ - # TODO: Add tests for this and the async stuff above logger.debug("Refreshing klines for %d pairs", len(pair_list)) datatups = asyncio.get_event_loop().run_until_complete( self.exchange.async_get_candles_history(pair_list, self.strategy.ticker_interval)) - # updating klines + # updating cached klines available to bot self._klines = {pair: data for (pair, data) in datatups} return True