binance / binance/binance-toolbox-python

How to enable auto-reconnection?

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
110
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

Is it possible to enable the auto-reconnection functionality in the following function? Can we please have that functionality?

```
async def listen_ws():
"""
Listens to the ws to get the updates messages.
"""
ws_client = SpotWebsocketStreamClient(stream_url=stream_url, on_message=message_handler)

ws_client.diff_book_depth(
symbol=symbol.lower(),
id=1,
speed=1000
)
```

Regards
PYQ

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the SpotWebsocketStreamClient entry point and the diff_book_depth call shown in the issue. Determine the expected reconnection behavior for the websocket stream, then verify that the client reconnects after a disconnection and continues delivering updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.