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

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 594, 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 143, in connect
self.query_contract()
File "c:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 223, in query_contract
packet = self.client.send_request(mt5_req)
File "c:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 608, in send_request
data = self.socket_req.recv_json()
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 782, in recv_json
return self._deserialize(msg, lambda buf: jsonapi.loads(buf, kwargs))
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 607, in _deserialize
return load(recvd)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 782, in <lambda>
return self._deserialize(msg, lambda buf: jsonapi.loads(buf,
kwargs))
File "c:\vnstudio\lib\site-packages\zmq\utils\jsonapi.py", line 58, in loads
return jsonmod.loads(s, **kwargs)
File "c:\vnstudio\lib\site-packages\simplejson__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "c:\vnstudio\lib\site-packages\simplejson\decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "c:\vnstudio\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting ',' delimiter or '}': line 1 column 763914 (char 763913)

Member
avatar
加入于:
帖子: 214
声望: 7

请重启下MT5,如果还不行的话就删除C:\users\administrator.vntrader文件夹里对应的json文件再试试。

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

还是不行

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

等待 有人回答

Member
avatar
加入于:
帖子: 2104
声望: 139

可参考https://www.vnpy.com/forum/topic/4203-mt5pei-zhi-quan-ju-chu-shi-hua-shi-bai

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

沪公网安备 31011502017034号