Add todo's and dockstring

This commit is contained in:
Matthias 2018-07-31 21:01:44 +02:00
parent 12417cc303
commit 136442245c
1 changed files with 6 additions and 0 deletions

View File

@ -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))