我的运行结果仍然是单号无法对应.
代码照写的.
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