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

启动会触发异常,但能查询到信息呢

description

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 570, in connect
self.main_engine.connect(setting, self.gateway_name)
File "c:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 166, in connect
gateway.connect(setting)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 139, in connect
self.query_order()
File "c:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 239, in query_order
packet = self.client.send_request(mt5_req)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 561, in send_request
self.socket_req.send_json(req)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 651, in send_json
return self.send(msg, flags=flags, **send_kwargs)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 400, in send
return super(Socket, self).send(data, flags=flags, copy=copy, track=track)
File "zmq\backend\cython\socket.pyx", line 728, in zmq.backend.cython.socket.Socket.send
File "zmq\backend\cython\socket.pyx", line 775, in zmq.backend.cython.socket.Socket.send
File "zmq\backend\cython\socket.pyx", line 247, in zmq.backend.cython.socket._send_copy
File "zmq\backend\cython\socket.pyx", line 242, in zmq.backend.cython.socket._send_copy
File "zmq\backend\cython\checkrc.pxd", line 26, in zmq.backend.cython.checkrc._check_rc
zmq.error.ZMQError: Operation cannot be accomplished in current state

Administrator
avatar
加入于:
帖子: 4028
声望: 221

这个是ZMQ的通讯报错,请检查下MT5里面的vnpy_server是否正确启动了?

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