CQG API 4.0 - Revised
OrderChanged Event
See Also  Send Feedback
change_type

The type of the occurred change.

The actual change can be traced through LastEvent property of the order.

cqg_order

CQGOrder object representing the order to which the change refers.

old_properties
CQGOrderProperties collection representing old values of all order properties.
cqg_fill

CQGFill object representing the last fill of the order, i.e. the last item of order's Fills collection.

If there was no fill, Nothing or invalid fill object is passed depending on the UsedFromATLClient setting of the configuration.

cqg_error

CQGError object representing either an error sent by CQG Gateway or an intermediate error. If the error is final the same instance of CQGError will be set to order's LastError property.

If no error has occurred, the parameter value is either Nothing or invalid error object depending on the UsedFromATLClient setting of the configuration.

The parameter can be checked for validity via the CQGCEL.IsValid method.

CQGCEL Interface : OrderChanged Event

Glossary Item Box

Description

This event is fired when a new order is added to the collection, the order status is changed, or the order is removed from the collection.

Syntax

Visual Basic
Public Event OrderChanged( _
   ByVal change_type As eChangeType, _
   ByVal cqg_order As CQGOrder, _
   ByVal old_properties As CQGOrderProperties, _
   ByVal cqg_fill As CQGFill, _
   ByVal cqg_error As CQGError _
)

Parameters

change_type
ValueDescription
ctAddedNew order is added and is already in the collection.
ctChangedThe order is changed.
ctRemovedThe order is removed from the collection.

The type of the occurred change.

The actual change can be traced through LastEvent property of the order.

cqg_order

CQGOrder object representing the order to which the change refers.

old_properties
CQGOrderProperties collection representing old values of all order properties.
cqg_fill

CQGFill object representing the last fill of the order, i.e. the last item of order's Fills collection.

If there was no fill, Nothing or invalid fill object is passed depending on the UsedFromATLClient setting of the configuration.

cqg_error

CQGError object representing either an error sent by CQG Gateway or an intermediate error. If the error is final the same instance of CQGError will be set to order's LastError property.

If no error has occurred, the parameter value is either Nothing or invalid error object depending on the UsedFromATLClient setting of the configuration.

The parameter can be checked for validity via the CQGCEL.IsValid method.

Remarks

In order to receive order events the AccountSubscriptionLevel property of CQGCEL should be set to aslAccountUpdatesAndOrders.

Example

The examples below show how to place orders via CQG API.

VB
C#
 
 

See Also