vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 27
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 571, 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 690, in recv_json
return self._deserialize(msg, lambda buf: jsonapi.loads(buf, kwargs))
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 515, in _deserialize
return load(recvd)
File "c:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 690, in <lambda>
return self._deserialize(msg, lambda buf: jsonapi.loads(buf,
kwargs))
File "c:\vnstudio\lib\site-packages\zmq\utils\jsonapi.py", line 56, 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 764985 (char 764984)

Member
avatar
加入于:
帖子: 470
声望: 20

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

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

是不是重装MT5?

Member
avatar
加入于:
帖子: 470
声望: 20

中文的解析存在编码格式问题,因此目前统一都不支持了

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

请问具体是怎么解决?是重新找经纪商吗?如果是,能不能推荐一下?

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

我之前遇到个类似的问题,后来发现我已经连接上了,我又连了一遍。你看看能下市价单交易么

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

沪公网安备 31011502017034号