CQG API 4.0 - Revised
Instruments Property
See Also  Send Feedback
CQGCEL Interface : Instruments Property

Glossary Item Box

Description

Returns the collection of currently resolved instruments.

Property type

Read-only property

Syntax

Visual Basic
Public Property Instruments As CQGInstruments

Return Type

CQGInstruments collection containing all instruments that were previously resolved

Remarks

The Instruments property returns a collection of instruments, which were previously resolved and subscribed. It also contains instruments that were subscribed, and then their subscription level was set to dsNone.

An instrument is removed from this collection only by calling the RemoveInstrument or RemoveAllInstruments methods.


In CQG API version 3.0 and higher instruments that were subscribed via AutoSubscribeInstruments setting are also included in this collection.

Example

The example demonstrates how to get the moment, when two instruments are valid and it is possible to work with a spread. The example demonstrates the usage of the CQGCEL.Instruments collection element access technique using the instrument's full name.

VB
C#
 
 

See Also