0

使用 wiki 中的示例代码时python-kucoinhttps ://python-kucoin.readthedocs.io/en/latest/websockets.html

我一直"sleeping to keep loop open"在调试模式下(我正在使用 PyCharm)。

深入研究代码,我也意识到在代码的这个阶段(res['instanceServers'][0]['endpoint'])https ://github.com/sammchardy/python-kucoin/blob/develop/kucoin/client.py#L183

终点是 wss://ws-api.kucoin.com/endpoint

而根据 Kucoin 文档,它应该是: wss://push1-v2.kucoin.com/endpoint

这是预期的吗?

我强迫代码改变了这一点,但它也无助于接收任何数据......

在从 websocket 接收任何数据之前我应该​​等待多长时间?

4

0 回答 0