test ticker caching

This commit is contained in:
xmatthias
2018-06-06 20:24:47 +02:00
parent e690003621
commit a901f21bcd
2 changed files with 11 additions and 0 deletions

View File

@@ -275,6 +275,7 @@ def get_ticker(pair: str, refresh: Optional[bool] = True) -> dict:
try:
_CACHED_TICKER[pair] = {
'bid': float(data['bid']),
'ask': float(data['ask']),
}
except KeyError as e:
logger.debug("Could not cache ticker data for %s", pair)