diff --git a/freqtrade/exchange/binance.py b/freqtrade/exchange/binance.py index 2b681081a..f20920df6 100644 --- a/freqtrade/exchange/binance.py +++ b/freqtrade/exchange/binance.py @@ -30,7 +30,7 @@ class Binance(Exchange): "trades_pagination_arg": "fromId", "trades_has_history": True, "l2_limit_range": [5, 10, 20, 50, 100, 500, 1000], - "ws.enabled": True, + "ws_enabled": True, } _ft_has_futures: Dict = { "stoploss_order_types": {"limit": "stop", "market": "stop_market"}, @@ -43,7 +43,7 @@ class Binance(Exchange): PriceType.LAST: "CONTRACT_PRICE", PriceType.MARK: "MARK_PRICE", }, - "ws.enabled": False, + "ws_enabled": False, } _supported_trading_mode_margin_pairs: List[Tuple[TradingMode, MarginMode]] = [ diff --git a/freqtrade/exchange/bybit.py b/freqtrade/exchange/bybit.py index 16932947d..ce9c38fff 100644 --- a/freqtrade/exchange/bybit.py +++ b/freqtrade/exchange/bybit.py @@ -33,7 +33,7 @@ class Bybit(Exchange): "ohlcv_candle_limit": 1000, "ohlcv_has_history": True, "order_time_in_force": ["GTC", "FOK", "IOC", "PO"], - "ws.enabled": True, + "ws_enabled": True, "trades_has_history": False, # Endpoint doesn't support pagination } _ft_has_futures: Dict = { diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 7bd8b694b..df1971999 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -154,7 +154,7 @@ class Exchange: "marketOrderRequiresPrice": False, "exchange_has_overrides": {}, # Dictionary overriding ccxt's "has". # Expected to be in the format {"fetchOHLCV": True} or {"fetchOHLCV": False} - "ws.enabled": False, # Set to true for exchanges with tested websocket support + "ws_enabled": False, # Set to true for exchanges with tested websocket support } _ft_has: Dict = {} _ft_has_futures: Dict = {} @@ -261,7 +261,7 @@ class Exchange: exchange_conf.get("ccxt_async_config", {}), ccxt_async_config ) self._api_async = self._init_ccxt(exchange_conf, False, ccxt_async_config) - self._has_watch_ohlcv = self.exchange_has("watchOHLCV") and self._ft_has["ws.enabled"] + self._has_watch_ohlcv = self.exchange_has("watchOHLCV") and self._ft_has["ws_enabled"] if ( self._config["runmode"] in TRADE_MODES and exchange_conf.get("enable_ws", True) diff --git a/freqtrade/exchange/okx.py b/freqtrade/exchange/okx.py index db94f576d..248028973 100644 --- a/freqtrade/exchange/okx.py +++ b/freqtrade/exchange/okx.py @@ -34,7 +34,7 @@ class Okx(Exchange): "stoploss_order_types": {"limit": "limit"}, "stoploss_on_exchange": True, "trades_has_history": False, # Endpoint doesn't have a "since" parameter - "ws.enabled": True, + "ws_enabled": True, } _ft_has_futures: Dict = { "tickers_have_quoteVolume": False, @@ -44,7 +44,7 @@ class Okx(Exchange): PriceType.MARK: "index", PriceType.INDEX: "mark", }, - "ws.enabled": True, + "ws_enabled": True, } _supported_trading_mode_margin_pairs: List[Tuple[TradingMode, MarginMode]] = [