From 3038dfd14d99c6e371f8e7c9cb1a987c89874259 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Mon, 1 Apr 2024 11:59:54 +1100 Subject: [PATCH] Standardize Bybit websocket client --- nautilus_trader/adapters/bybit/websocket/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nautilus_trader/adapters/bybit/websocket/client.py b/nautilus_trader/adapters/bybit/websocket/client.py index 0e8179d2a555..a40b705a1fed 100644 --- a/nautilus_trader/adapters/bybit/websocket/client.py +++ b/nautilus_trader/adapters/bybit/websocket/client.py @@ -117,6 +117,8 @@ async def disconnect(self) -> None: return await self._client.disconnect() + self._client = None # Dispose (will go out of scope) + self._log.info(f"Disconnected from {self._base_url}", LogColor.BLUE) ################################################################################