binance / binance/binance-toolbox-python

How to enable auto-reconnection?

未关闭
#19 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
110
派生
22
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 issue 中展示的入口点 SpotWebsocketStreamClient 和 diff_book_depth 调用开始。确定 websocket 流的预期重连行为,然后验证客户端在断开连接后会重新连接并继续提供更新。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。