From cd8bd9038e8704a93bcae0efb84a1a1125cf3be6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Jul 2024 18:12:14 +0200 Subject: [PATCH] fix: Reassign "options" on market reload Ensures that all data is available after init or reload. --- freqtrade/exchange/exchange.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index ac648abea..9be949ff5 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -602,9 +602,12 @@ class Exchange: # Reload async markets, then assign them to sync api self._markets = self._load_async_markets(reload=True) self._api.set_markets(self._api_async.markets, self._api_async.currencies) + # Assign options array, as it contains some temporary information from the exchange. + 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.options = self._api.options self._last_markets_refresh = dt_ts() if is_initial and self._ft_has["needs_trading_fees"]: