Call connection at intervals

This commit is contained in:
Matthias
2024-05-31 06:52:11 +02:00
parent 33e61b1308
commit 12852438a5
2 changed files with 10 additions and 2 deletions

View File

@@ -563,6 +563,13 @@ class Exchange:
amount, self.get_precision_amount(pair), self.precisionMode, contract_size
)
def ws_connection_reset(self):
"""
called at regular intervals to reset the websocket connection
"""
if self._exchange_ws:
self._exchange_ws.reset_connections()
def _load_async_markets(self, reload: bool = False) -> None:
try:
if self._api_async: