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

用的是 CTPTest, 下单都是正常的。
但是撤单每次都是如下的故障。 vnpy 2.0.8

请教一下是什么问题呢?

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

Administrator
avatar
加入于:
帖子: 3902
声望: 208

请升级到2.0.9试试

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