HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
682 stars 333 forks source link

如何不出问题的停止websocket #82

Open wizcs opened 3 years ago

wizcs commented 3 years ago

不知道这个问题是不是很小白,但是我试了很多方法也不能在程序内中断所有的线程(优雅的,不强制结束的)。 就是如何在market_client.sub_candlestick()之后,可以用huobi\connection\impl\websocket_manage.py里面写好的close函数操作一下。