1163849662
1163849662
> **Describe the bug** // A clear and concise description of what the bug is. > > **Steps To Reproduce** // A concise description of the **steps to reproduce the...
> I can't find out where is the `limit is invalid` bug. The code seems work as expected. Using 'depth_cache.get_asks()' I want to get 100 asks depth data, but there...
> 限制参数不是你想的那样。它用于指定初始化订单簿时获得多少级别。 > > 除此之外,需要继续接收增量深度消息以保持本地订单簿的更新。Binance 在他们的文档中对此有详细说明。 > > 回到python-binance,恕我直言(我可能错了),协程流没有正确实现,因为增量深度消息有一个硬编码的默认深度参数10,`FuturesDepthCacheManager`直接使用。这就是您的代码不断打印的原因`10`。 > > 对于修复,必须继承`FuturesDepthCacheManager`和覆盖`_get_socket`方法才能正确订阅`wss://fstream.binance.com/stream?streams=btcusdt@depth`增量深度流,没有任何深度限制。 > The limit parameter is not what you think. It is used to specify how many levels are...