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

请教下,MT5已经按照https://www.vnpy.com/forum/topic/3765-vn-pyfa-bu-v2-1-4-metatrader-5jie-kou?page=1#pid13286中的介绍进行配置,在vnpy里连接mt5时出现下面错误。请各位大神帮小弟看看这是什么错误,该怎么办。谢谢!

Traceback (most recent call last):
File "d:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 570, in connect
self.main_engine.connect(setting, self.gateway_name)
File "d:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 166, in connect
gateway.connect(setting)
File "d:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 138, in connect
self.query_contract()
File "d:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 213, in query_contract
packet = self.client.send_request(mt5_req)
File "d:\vnstudio\lib\site-packages\vnpy\gateway\mt5\mt5_gateway.py", line 562, in send_request
data = self.socket_req.recv_json()
File "d:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 674, in recv_json
return self._deserialize(msg, lambda buf: jsonapi.loads(buf, kwargs))
File "d:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 499, in _deserialize
return load(recvd)
File "d:\vnstudio\lib\site-packages\zmq\sugar\socket.py", line 674, in <lambda>
return self._deserialize(msg, lambda buf: jsonapi.loads(buf,
kwargs))
File "d:\vnstudio\lib\site-packages\zmq\utils\jsonapi.py", line 56, in loads
return jsonmod.loads(s, **kwargs)
File "d:\vnstudio\lib\site-packages\simplejson__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "d:\vnstudio\lib\site-packages\simplejson\decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "d:\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 36639 (char 36638)

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

同问,解决了吗

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