以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 高级功能研发区 (http://weistock.com/bbs/list.asp?boardid=5) ---- VBA金宽6.0委托单号与成交单号无法对应 (http://weistock.com/bbs/dispbbs.asp?boardid=5&id=184205) |
||||
-- 作者:qihuo2018 -- 发布时间:2021/2/5 11:59:21 -- VBA金宽6.0委托单号与成交单号无法对应 版本:金宽6.0 VBA下单,比如id1=order.buy(....),返回id1=84019174; 然后order_OrderStatusEx2(....)触发返回的提交单号=2048576869. 这样单号完全无法对应,无法后续处理. 金宽有问题.望解决. 相同的VBA代码,用金字塔运行,则单号完全对应.金字塔无问题. |
||||
-- 作者:yukizzc -- 发布时间:2021/2/5 13:23:56 -- 本地测试没有问题这个id一样 此主题相关图片如下:82c1b85e9eac5becf76b5d698b5ecab.jpg |
||||
-- 作者:qihuo2018 -- 发布时间:2021/2/5 14:32:26 -- 我上传了附件图片,没显示出来? 我的运行结果仍然是单号无法对应. 代码照写的. 委托代码: application.msgout "======================" OrderId = Order.buy(1, 1, 0, 0, "hsi02", "hk", "", 0) application.msgout "小写合约代码/委托OrderId=" & OrderId application.msgout "======================" OrderId = Order.buyshort(1, 1, 0, 0, "HSI02", "HK", "", 0) application.msgout "大写合约代码/委托OrderId=" & OrderId 触发代码: function Order_OrderStatusex2(OrderId, Status, Filled, Remaining, price, Code, Market, OrderType, aspect, Kaiping, Account, Accounttype) application.msgout "=====================" application.msgout "触发OrderId=" & OrderId application.msgout "触发Status=" & Status application.msgout "触发Code=" & Code end function |
||||
-- 作者:qihuo2018 -- 发布时间:2021/2/5 14:34:51 -- 图片没显示出来. 我直接贴消息窗口结果: ===================== 小写合约代码/委托OrderId=84019246 ====================== 大写合约代码/委托OrderId=84019247 ===================== 触发OrderId=2048594096 触发Status=Submitted 触发Code=HSI02 ===================== 触发OrderId=2048594097 触发Status=Submitted 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019248 ====================== 大写合约代码/委托OrderId=84019249 ===================== 触发OrderId=2048594096 触发Status=Tradeing 触发Code=HSI02 ===================== 触发OrderId=2048594096 触发Status=Filled 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019250 ====================== 大写合约代码/委托OrderId=84019251 ===================== 触发OrderId=2048594097 触发Status=Tradeing 触发Code=HSI02 ===================== 触发OrderId=2048594097 触发Status=Filled 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019252 ====================== 大写合约代码/委托OrderId=84019253 ===================== 触发OrderId=2048594098 触发Status=Submitted 触发Code=HSI02 ===================== 触发OrderId=2048594099 触发Status=Submitted 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019254 ====================== 大写合约代码/委托OrderId=84019255 ===================== 触发OrderId=2048594098 触发Status=Tradeing 触发Code=HSI02 ===================== 触发OrderId=2048594098 触发Status=Filled 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019256 ====================== 大写合约代码/委托OrderId=84019257 ===================== 触发OrderId=2048594099 触发Status=Tradeing 触发Code=HSI02 ===================== 触发OrderId=2048594099 触发Status=Filled 触发Code=HSI02 ===================== 触发OrderId=2048594100 触发Status=Submitted 触发Code=HSI02 ====================== 小写合约代码/委托OrderId=84019258 ====================== 大写合约代码/委托OrderId=84019259 |
||||
-- 作者:yukizzc -- 发布时间:2021/2/5 14:35:13 -- http://www.weistock.com/bbs/dispbbs.asp?boardid=2&Id=31614&replyID=&skin=1 看下这里上传图片的教程 |
||||
-- 作者:qq代人发帖 -- 发布时间:2021/2/5 14:47:37 -- 解压出来这两个文件替换到金宽的KingQuant(x64)\\OrderServiceEx
|
||||
-- 作者:qihuo2018 -- 发布时间:2021/2/5 14:53:40 -- 好的,上传图片不成功.我先替换文件试试看. |
||||
-- 作者:qihuo2018 -- 发布时间:2021/2/5 15:11:31 -- 替换金宽2个文件后,单号一致了. 谢谢!
|