From 136442245c850c83bb314230306a27ef1924992d Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 31 Jul 2018 21:01:44 +0200 Subject: [PATCH] Add todo's and dockstring --- freqtrade/exchange/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 8c5793b83..8e88a7f5f 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -364,6 +364,12 @@ class Exchange(object): raise OperationalException(f'Could not fetch ticker data. Msg: {e}') def refresh_tickers(self, pair_list: List[str], ticker_interval: str) -> Dict: + """ + Refresh tickers asyncronously and return the result. + """ + # TODO: maybe add since_ms to use async in the download-script? + # TODO: only refresh once per interval ? *may require this to move to freqtradebot.py + # 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.async_get_tickers_history(pair_list, ticker_interval))