Returns a sub-collection of current orders collection, filtered by order status.
Visual Basic |
---|
Public Function SelectByOrderStatus( _ ByVal order_status As eOrderStatus _ ) As CQGOrders |
- order_status
Value Description osActiveAt The order will be active at the nearest session.
osBusted Order was completely filled and then all fills were busted osCanceled The order is cancelled. osContingent The order is contingent on another order, awaiting activation. osDisconnected The order might be cancelled because a disconnect occurred. osExpired The order is expired.
It means that the order was not filled during its duration period.
osFilled The order is filled. osInCancel The order is in cancellation stage. osInClient The order either is in CQGIC or is flying to the CQG Gateway. osInModify The order is in modification stage. osInOrderBook The order is working. osInTransit Order is in transit.
It means that the order has already reached the CQG Gateway, and now it is on its way to the exchange.
osInTransitTimeout The order was timed out, while waiting for notification from the CQG Gateway. osNotSent The order did not leave the CQG API side, yet. osParked The order is parked. osRejectFCM The order is rejected by FCM. osRejectGW The order is rejected by CQG Gateway. Order status that will be used as the selection criteria, represented as eOrderStatus
A CQGOrders collection consisting of orders with the same GWStatus, which are picked from the current orders collection.
See the usage of CQGOrders methods in the PrepareModify method's example section.