CQG API 4.0 - Revised
InstrumentChanged Event
See Also  Send Feedback
cqg_instrument

Name of updated instrument.

cqg_quotes

Collection of changed quotes.

The contents of cqg_quotes depends on how the CQGAPIConfig.NewInstrumentChangeMode property is set, as the following:

cqg_instrument_properties

Collection of changed dynamic properties.

CQGCEL Interface : InstrumentChanged Event

Glossary Item Box

Description

This event is fired when any of the instrument quotes or dynamic instrument properties are changed.

Syntax

Visual Basic
Public Event InstrumentChanged( _
   ByVal cqg_instrument As CQGInstrument, _
   ByVal cqg_quotes As CQGQuotes, _
   ByVal cqg_instrument_properties As CQGInstrumentProperties _
)

Parameters

cqg_instrument

Name of updated instrument.

cqg_quotes

Collection of changed quotes.

The contents of cqg_quotes depends on how the CQGAPIConfig.NewInstrumentChangeMode property is set, as the following:

cqg_instrument_properties

Collection of changed dynamic properties.

Remarks

This event will not be fired if the data subscription level of the instrument is set to dsNone. All other data subscription level settings control the information that will be sent via the InstrumentChanged event.

If the data subscription level is set to dsQuotes, trades information and dynamic properties about trades will be delivered to the user. Updates of asks or bids will not be available.

To receive ask/bid updates, set the subscription level to dsQuotesAndBBA.


In order to receive DOM data updates set subscription level to dsQuotesAndDOM


In versions earlier than v. 3.0, the Quotes and props parameters contained collections with new values of the changed quotes/properties. Starting from CQG API v.3.0 the content can be configured to contain the old values of the changed quotes/properties. See NewInstrumentChangeMode for details.

Example

This example demonstrates how to handle the InstrumentChanged event and how to use CQGInstrumentProperties and CQGQuotes collection objects.

See the implementation of CQGCEL events handling in the AccountChanged event's example section.

VB
C#
 
 

See Also