CQG API 4.0 - Revised
OnQueryProgress Event
See Also  Send Feedback
cqg_orders_query

The CQGOrdersQuery object, to which the change refers.

This is the same object that was returned by QueryOrders

cqg_error

CQGError object representing the last error occurred, while processing this order query.

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 : OnQueryProgress Event

Glossary Item Box

Description

This event is fired if a query has some progress: either new results arrived or its status is changed.

Syntax

Visual Basic
Public Event OnQueryProgress( _
   ByVal cqg_orders_query As CQGOrdersQuery, _
   ByVal cqg_error As CQGError _
)

Parameters

cqg_orders_query

The CQGOrdersQuery object, to which the change refers.

This is the same object that was returned by QueryOrders

cqg_error

CQGError object representing the last error occurred, while processing this order query.

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

The results of a query are received via this event. There may be more than one event due to the fact that results can be sent via more than one chunk of orders.

Results are represented as CQGOrders collection available in Orders property of CQGOrdersQuery object.

If the results were sent via more than one chunk the last arrived chunk is available from LastChunk property and also all previously received chunks, including the last one, are already added to the Orders collection of current query.

Example

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

VB
C#
 
 

See Also