CQG API 4.0 - Revised
Instrument Property
See Also  Send Feedback
CQGPosition Interface : Instrument Property

Glossary Item Box

Description

Returns a CQGInstrument object representing the instrument on which the current position is created.

Property type

Read-only property

Syntax

Visual Basic
Public Property Instrument As CQGInstrument

Return Type

The instrument represented as CQGInstrument.

Nothing if the instrument is not subscribed.

Remarks

After instrument subscription a CQGInstrument object will be available both from this property and from CQGCEL.Instruments collection. Note that if you remove it from the collection it won't be available from this property any more. It will affect the calculations of the position's dynamic properties and the summary of corresponding account.

Example

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

See Also