盈透证券为单个订单返回多个"presubmitted"订单状态

Interactive Brokers returns multiple "presubmitted" order statuses for a single order

本文关键字:presubmitted 状态 单状态 单返回 单个订 返回      更新时间:2023-10-16

是否有人在每个发送的订单中经历过多个订单状态?有没有办法解决这个问题,或者最好的办法是什么?

./PosixSocketClientTest 10.1.55.2
Start of POSIX Socket Client Test 0
Attempt 1 of 50
Connecting to 10.1.55.2:7496 clientId:0
Connected to 10.1.55.2:7496 clientId:0
Placing Order 42: BUY 1000 IBM at 0.010000
Order: id=42, status=PreSubmitted
Requesting Current Time
The current date/time is: Sat May 7 12:20:04 2016
Order: id=42, status=PreSubmitted
Order: id=42, status=Cancelled

https://www.interactivebrokers.com/en/software/api/apiguide/c/orderstatus.htm

注意:orderStatus()可能返回重复消息。您必须相应地过滤消息。

有两个字段,已填充和剩余,我观察以了解订单的执行情况。当剩余为0时,一切都结束了。这样你就可以知道它是否是部分填充。