vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 8
声望: 0
return self.rest_api.query_history(req)

File "F:\vnpy-master\vnpy\gateway\bitmex\bitmex_gateway.py", line 345, in query_history
params=params
File "F:\vnpy-master\vnpy\api\rest\rest_client.py", line 322, in request
proxies=self.proxies,
File "D:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, kwargs)
File "D:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep,
send_kwargs)
File "D:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "D:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.bitmex.com', port=443): Max retries exceeded with url: /api/v1/trade/bucketed?binSize=1m&symbol=XBTUSD&count=750&startTime=2017-08-24+07%3A00%3A00&endTime=2019-08-17T00%3A00%3A00 (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')")))

Administrator
avatar
加入于:
帖子: 3588
声望: 190

这个应该是代理配置的问题,请检查你是否启动了shadowsocks以及配置了正确的地址端口

Member
avatar
加入于:
帖子: 8
声望: 0

request库偶尔会报这个异常 我查了一下request库的issue 里面虽然提到这个问题 但是似乎用上边的版本也没办法解决这个问题 暂时只能上层捕获这个异常 然后做continus处理。

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3