added test for get_rates

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-03-26 12:02:54 +05:30
parent ab7cdca68e
commit 4a35c8c0f3
2 changed files with 99 additions and 16 deletions

View File

@@ -1182,6 +1182,10 @@ class Exchange:
sell_rate = None
if not refresh:
buy_rate, sell_rate = self._buy_rate_cache.get(pair), self._sell_rate_cache.get(pair)
if buy_rate:
logger.debug(f"Using cached buy rate for {pair}.")
if sell_rate:
logger.debug(f"Using cached sell rate for {pair}.")
bid_strategy = self._config.get('bid_strategy', {})
ask_strategy = self._config.get('ask_strategy', {})