vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 2
声望: 0

版主,求助。请问这是不是火币的问题,科学上网是开通的。Trader中的资金项中也读取到了数据。但是马上就卡住,报下列错误。

C:\Users\Administrator>python -m vnstation
[2019-07-01T17:50:20.553300]: Unhandled WebSocket Error:<class 'TimeoutError'>
LastSentText:
None
LastReceivedText:
None
Exception trace:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 164, in _run
self._connect()
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 147, in _connect
header=self.header
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 138, in _create_connection
return websocket.create_connection(args, kwargs)
File "C:\vnstudio\lib\site-packages\websocket_core.py", line 514, in create_c
onnection
websock.connect(url,
options)
File "C:\vnstudio\lib\site-packages\websocket_core.py", line 223, in connect
options.pop('socket', None))
File "C:\vnstudio\lib\site-packages\websocket_http.py", line 120, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "C:\vnstudio\lib\site-packages\websocket_http.py", line 189, in _open_so
cket
raise error
File "C:\vnstudio\lib\site-packages\websocket_http.py", line 172, in _open_so
cket
sock.connect(address)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没
有反应,连接尝试失败。
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 164, in _run
[2019-07-01T17:50:20.553300]: Unhandled WebSocket Error:<class 'TimeoutError'>
LastSentText:
None
LastReceivedText:
None
Exception trace:
Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 164, in _run
self._connect()
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 147, in _connect
header=self.header
File "C:\vnstudio\lib\site-packages\vnpy\api\websocket\websocket_client.py", l
ine 138, in _create_connection
return websocket.create_connection(
args, kwargs)
File "C:\vnstudio\lib\site-packages\websocket_core.py", line 514, in create_c
onnection
websock.connect(url,
options)
File "C:\vnstudio\lib\site-packages\websocket_core.py", line 223, in connect
options.pop('socket', None))

Administrator
avatar
加入于:
帖子: 1441
声望: 63

必须用Shadowsocks指定代理地址和端口连接,全局代理或者其他软件都是没用的

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

是在系统—连接HUOBI的窗口中填入代理地址和端口吗?这个代理地址在什么地方找?

Administrator
avatar
加入于:
帖子: 1441
声望: 63

网上搜索Shadowsocks的使用文档吧

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