mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-09-20 09:31:12 +00:00
fix: Reassign "options" on market reload
Ensures that all data is available after init or reload.
This commit is contained in:
parent
72c7f118a0
commit
cd8bd9038e
|
@ -602,9 +602,12 @@ class Exchange:
|
||||||
# Reload async markets, then assign them to sync api
|
# Reload async markets, then assign them to sync api
|
||||||
self._markets = self._load_async_markets(reload=True)
|
self._markets = self._load_async_markets(reload=True)
|
||||||
self._api.set_markets(self._api_async.markets, self._api_async.currencies)
|
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:
|
if self._exchange_ws:
|
||||||
# Set markets to avoid reloading on websocket api
|
# Set markets to avoid reloading on websocket api
|
||||||
self._ws_async.set_markets(self._api.markets, self._api.currencies)
|
self._ws_async.set_markets(self._api.markets, self._api.currencies)
|
||||||
|
self._ws_async.options = self._api.options
|
||||||
self._last_markets_refresh = dt_ts()
|
self._last_markets_refresh = dt_ts()
|
||||||
|
|
||||||
if is_initial and self._ft_has["needs_trading_fees"]:
|
if is_initial and self._ft_has["needs_trading_fees"]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user