CQG API 4.0 - Revised
SelectByOrderStatus Method
See Also  Send Feedback
order_status

Order status that will be used as the selection criteria, represented as eOrderStatus

CQGOrders Collection : SelectByOrderStatus Method

Glossary Item Box

Description

Returns a sub-collection of current orders collection, filtered by order status.

Syntax

Visual Basic
Public Function SelectByOrderStatus( _
   ByVal order_status As eOrderStatus _
) As CQGOrders

Parameters

order_status
ValueDescription
osActiveAt

The order will be active at the nearest session.

osBustedOrder was completely filled and then all fills were busted
osCanceledThe order is cancelled.
osContingentThe order is contingent on another order, awaiting activation.
osDisconnectedThe 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.

osFilledThe order is filled.
osInCancelThe order is in cancellation stage.
osInClientThe order either is in CQGIC or is flying to the CQG Gateway.
osInModifyThe order is in modification stage.
osInOrderBookThe 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.

osInTransitTimeoutThe order was timed out, while waiting for notification from the CQG Gateway.
osNotSentThe order did not leave the CQG API side, yet.
osParkedThe order is parked.
osRejectFCMThe order is rejected by FCM.
osRejectGWThe order is rejected by CQG Gateway.

Order status that will be used as the selection criteria, represented as eOrderStatus

Return Type

A CQGOrders collection consisting of orders with the same GWStatus, which are picked from the current orders collection.

Example

See the usage of CQGOrders methods in the PrepareModify method's example section.

See Also