updated requested changes in PR #6545

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2022-03-28 20:36:58 +05:30
parent 389ae969fc
commit bd00f6de17
9 changed files with 118 additions and 141 deletions

View File

@@ -1181,7 +1181,8 @@ class Exchange:
buy_rate = None
sell_rate = None
if not refresh:
buy_rate, sell_rate = self._buy_rate_cache.get(pair), self._sell_rate_cache.get(pair)
buy_rate = self._buy_rate_cache.get(pair)
sell_rate = self._sell_rate_cache.get(pair)
if buy_rate:
logger.debug(f"Using cached buy rate for {pair}.")
if sell_rate: