CQG API 4.0 - Revised
RequestCommodityInstruments Method
See Also  Send Feedback
commodity_name
commodity symbol name
instrument_types

Instrument type bitmask represented as eInstrumentType.

This parameter can include any combination of the instrument types. Its value controls the contents of the collection returned by the CommodityInstrumentsResolved Event.

tradable_only

If set to False, all instrument names corresponding to the given instrumentTypes filter will be resolved.

If set to True, only tradable instrument names corresponding to the given instrumentTypes filter will be resolved.

The default value for this parameter is False.

CQGCEL Interface : RequestCommodityInstruments Method

Glossary Item Box

Description

Requests a list of instrument names corresponding to the specified commodity.

Syntax

Visual Basic
Public Sub RequestCommodityInstruments( _
   ByVal commodity_name As String, _
   ByVal instrument_types As eInstrumentType, _
   Optional ByVal tradable_only As Boolean = False _
) 

Parameters

commodity_name
commodity symbol name
instrument_types
ValueDescription
itAllInstrumentsRepresents all instrument types.
itAllOptionsRepresents Option Call and Option Put instrument types.
itFutureRepresents Futures instrument type.
itOptionCallRepresents Option Call instrument type.
itOptionPutRepresents Option Put instrument type.
itOtherRepresents other (not explicitly listed in the enumeration) instrument types, such as cash, indices, currencies, reports etc.
itStockRepresents Stock instrument type.
itSyntheticStrategyRepresents synthetic strategy instrument type.
itTreasureRepresents Treasury instrument type.
itUndefinedUndefined type.

Instrument type bitmask represented as eInstrumentType.

This parameter can include any combination of the instrument types. Its value controls the contents of the collection returned by the CommodityInstrumentsResolved Event.

tradable_only

If set to False, all instrument names corresponding to the given instrumentTypes filter will be resolved.

If set to True, only tradable instrument names corresponding to the given instrumentTypes filter will be resolved.

The default value for this parameter is False.

Remarks

This method works in asynchronous mode, i.e. the method just triggers the request in the CQGCEL without waiting for its results. The result will come with the CommodityInstrumentsResolved event.

Example

See the usage of the RequestCommodityInstruments method in CommodityInstrumentsResolved Example.

See Also