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

在图形交易界面下,
点"全撤"进行撤单时,出错,提示信息:

Traceback (most recent call last):
File "D:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 865, in cancel_all
self.main_engine.cancel_order(req, order.gateway_name)
File "D:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 183, in cancel_order
gateway.cancel_order(req)
File "D:\vnstudio\lib\site-packages\vnpy\gateway\ctptest\ctptest_gateway.py", line 185, in cancel_order
self.td_api.cancel_order(req)
File "D:\vnstudio\lib\site-packages\vnpy\gateway\ctptest\ctptest_gateway.py", line 785, in cancel_order
self.reqOrderAction(ctp_req, self.reqid)
RuntimeError: Unable to cast Python instance to C++ type (compile in debug mode for details)

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

补充:有可撤单的

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

这个是字段缺失错误,请问是否升级到了最新的2.0.9版本?

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