FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add stream_keepalive() · maxoja/python-binance@fe0a659 · GitHub

Commit fe0a659

Browse files
committed
add stream_keepalive()
1 parent 7d3326c commit fe0a659

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎binance/websockets.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,12 @@ def _keepalive_account_socket(self, socket_type):
740740
if listen_key != self._listen_keys[socket_type]:
741741
self._start_account_socket(socket_type, listen_key, callback)
742742
else:
743+
if socket_type == 'user':
744+
self._client.stream_keepalive(listen_key)
745+
elif socket_type == 'margin': # cross-margin
746+
self._client.margin_stream_keepalive(listen_key)
747+
else: # isolated margin
748+
self._client.isolated_margin_stream_keepalive(listen_key)
743749
self._start_socket_timer(socket_type)
744750

745751
def stop_socket(self, conn_key):

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL