CQG API 4.0 - Revised
SelectByOrderType Method
See Also  Send Feedback
order_type

Order type that will be used as the selection criteria, represented as eOrderType

CQGOrders Collection : SelectByOrderType Method

Glossary Item Box

Description

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

Syntax

Visual Basic
Public Function SelectByOrderType( _
   ByVal order_type As eOrderType _
) As CQGOrders

Parameters

order_type
ValueDescription
otLimit

Limit order.

otMarket

Market order.

otStop

Stop order.

otStopLimit

Stop Limit order.

otUndefined

Undefined order type.

Order type that will be used as the selection criteria, represented as eOrderType

Return Type

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

Example

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

See Also