Returns a CQGInstrument object representing the instrument on which the current position is created.
Read-only property
Visual Basic |
---|
Public Property Instrument As CQGInstrument |
The instrument represented as CQGInstrument.
Nothing if the instrument is not subscribed.
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.
See the usage of Instrument property in the AccountChanged event's example section.