Fermi

Results 3 comments of Fermi

@larrychenlawrence 我用pycharm调试了,返回的数据正常 ![捕获](https://user-images.githubusercontent.com/35759542/104105664-a3de1e80-52ea-11eb-991d-e4ba6dd8a6d1.PNG)

> > @larrychenlawrence 我用pycharm调试了,返回的数据正常 > > ![捕获](https://user-images.githubusercontent.com/35759542/104105664-a3de1e80-52ea-11eb-991d-e4ba6dd8a6d1.PNG) > > 我试了eth也是错误的,是因为我用了代理吗?你的sdk版本是最新的? 是最新的

我的解决方案可以设置全局代理,不用每个脚本单独设置代理了。 /huobi/connection/文件夹里是底层连接的接口,(1)restapi_sync_client.py是所有get和post请求的接口,大概113行def request_process(self, method, url, params, parse)函数里可以加一个代理;(2)impl文件夹下websocket_manage.py是所有websocket请求的接口,大概43行def websocket_func(*args)函数里可以加一个代理。 还有一种方式,国内可以直接访问api.huobi.be,在/huobi/constant/的system.py里修改一下地址