CQG API 4.0 - Revised
UnderlyingInstrument Property
See Also  Send Feedback
CQGInstrument Interface : UnderlyingInstrument Property

Glossary Item Box

Description

Returns the underlying instrument of an option or Nothing if no underlying instrument is available.

Property type

Read-only property

Syntax

Visual Basic
Public Property UnderlyingInstrument As CQGInstrument

Return Type

Underlying instrument represented as CQGInstrument Object

Remarks

Mainly this refers to underlying instruments of options. Designed so the CQGInsturment object containing the underlying instrument will be returned only if it was previously and separately resolved. Otherwise, the property will return Nothing.

Nothing is also returned if the instrument is not an option.

Example

To access the Instrument properties see the example section of the InstrumentSubscribed event.

See Also