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

sendorder time_stamp: 2019-06-26 11:02:56.378374
getorder time_stamp: 2019-06-26 11:02:56.379375
order: OrderData(gatewayname='CTP', symbol='rb1910', exchange=<Exchange.SHFE: 'SHFE'>, orderid='5-531411645_1', type=<OrderType.LIMIT: '限价'>, direction=<Direction.LONG: '多'>, offset=<Offset.OPEN: '开'>, price=3726.0, volume=1, traded=0, status=<Status.SUBMITTING: '提交中'>, time='')
getorder time_stamp: 2019-06-26 11:02:56.416377
order: OrderData(gatewayname='CTP', symbol='rb1910', exchange=<Exchange.SHFE: 'SHFE'>, orderid='5-531411645_1', type=<OrderType.LIMIT: '限价'>, direction=<Direction.LONG: '多'>, offset=<Offset.OPEN: '开'>, price=3726.0, volume=1, traded=0, status=<Status.SUBMITTING: '提交中'>, time='11:02:58')
getorder time_stamp: 2019-06-26 11:02:56.419377
order: OrderData(gatewayname='CTP', symbol='rb1910', exchange=<Exchange.SHFE: 'SHFE'>, orderid='5-531411645_1', type=<OrderType.LIMIT: '限价'>, direction=<Direction.LONG: '多'>, offset=<Offset.OPEN: '开'>, price=3726.0, volume=1, traded=0, status=<Status.NOTTRADED: '未成交'>, time='11:02:58')
cancelorder: 5-531411645_1

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

cancelorder: 5-5314116451
这个ID传的不对吧
应该是传这个:5
-531411645_1

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

id没问题, 发贴复制粘贴的时候少了一个 "_"

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

找出原因了, id前面要加 'CTP', 正确的orderid为: CTP.5_-531411645-1

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