From 8391a0612deef82333084385a116c15aab17eb6b Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Sep 2025 07:07:39 +0200 Subject: [PATCH] chore: use ccxt's "set_markets_from_exchange" instead of manual logic --- freqtrade/exchange/exchange.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 7d086677d..cedc716be 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -692,12 +692,13 @@ class Exchange: # Reload async markets, then assign them to sync api retrier(self._load_async_markets, retries=retries)(reload=True) self._markets = self._api_async.markets - self._api.set_markets(self._api_async.markets, self._api_async.currencies) + self._api.set_markets_from_exchange(self._api_async) # Assign options array, as it contains some temporary information from the exchange. + # TODO: investigate with ccxt if it's safe to remove `.options` self._api.options = self._api_async.options if self._exchange_ws: # Set markets to avoid reloading on websocket api - self._ws_async.set_markets(self._api.markets, self._api.currencies) + self._ws_async.set_markets_from_exchange(self._api_async) self._ws_async.options = self._api.options self._last_markets_refresh = dt_ts()