Skip to content

Commit

Permalink
Change update prices method
Browse files Browse the repository at this point in the history
  • Loading branch information
mlguys committed Feb 19, 2024
1 parent 571f898 commit b94b27d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hummingbot/core/rate_oracle/rate_oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ async def _fetch_price_loop(self):
while True:
try:
new_prices = await self._source.get_prices(quote_token=self._quote_token)

for pair, price in new_prices.items():
self.set_price(pair, price)
self._prices.update(new_prices)

if self._prices:
self._ready_event.set()
Expand Down

0 comments on commit b94b27d

Please sign in to comment.