From aef0324aa7bbce5ca4600c001642442c6f5a5fda Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 11 Nov 2022 19:54:52 +0100 Subject: [PATCH] set markets for ws exchange on reload --- freqtrade/exchange/exchange.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 64d048b1d..370225152 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -576,6 +576,9 @@ class Exchange: self._markets = self._api.load_markets(reload=True, params={}) # Also reload async markets to avoid issues with newly listed pairs self._load_async_markets(reload=True) + if self._exchange_ws: + # Set markets to avoid reloading on websocket api + self._ws_async.set_markets(self._api.markets, self._api.currencies) self._last_markets_refresh = dt_ts() self.fill_leverage_tiers() except ccxt.BaseError: