CQG API 4.0 - Revised
NewInstrumentChangeMode Property
See Also  Send Feedback
CQGAPIConfig Interface : NewInstrumentChangeMode Property

Glossary Item Box

Description

Specifies whether the InstrumentChanged event will work in old or new mode.

The default value is False.

Property type

Read-write property

Syntax

Visual Basic
Public Property NewInstrumentChangeMode As Boolean

Return Type

True if the mode is new, False otherwise.

Remarks

In old version of CQG API the collections that were passed to the InstrumentChanged event kept the new values of the changed quotes/properties. CQG API v.3.0 and higher behaves the same way if this property is set to False.

Starting from CQG API v.3.0 the collections can keep the old values in the argument collections. In order to use this approach user should set this property to True.

Example

See the usage of NewInstrumentChangeMode property in the AccountChanged event's example section.

See Also