From 76914c2c07e70e9de6d87d270d7c96990ff97104 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 15 Aug 2018 12:57:27 +0200 Subject: [PATCH] remove todo comment as this is actually done --- freqtrade/freqtradebot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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