CQG API 4.0 - Revised
CommodityInstrumentsResolved Event
See Also  Send Feedback
commodity_name
The commodity symbol that was requested by the user in the corresponding RequestCommodityInstruments method call.
instrument_types
Instrument type bitmask that was set by the user in corresponding RequestCommodityInstruments method call.
cqg_commodity_intruments

A collection, which contains names of instruments corresponding to the requested commodity and filtered by the bitmask set in RequestCommodityInstruments Method.

For example, the returned instrument name for the commodity "EP", will have the following format: "F.EPH7".

CQGCEL Interface : CommodityInstrumentsResolved Event

Glossary Item Box

Description

This event is fired when a previously requested commodity symbol is resolved into the instruments list.

Syntax

Visual Basic
Public Event CommodityInstrumentsResolved( _
   ByVal commodity_name As String, _
   ByVal instrument_types As eInstrumentType, _
   ByVal cqg_commodity_intruments As CQGCommodityInstruments _
)

Parameters

commodity_name
The commodity symbol that was requested by the user in the corresponding RequestCommodityInstruments method call.
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 that was set by the user in corresponding RequestCommodityInstruments method call.
cqg_commodity_intruments

A collection, which contains names of instruments corresponding to the requested commodity and filtered by the bitmask set in RequestCommodityInstruments Method.

For example, the returned instrument name for the commodity "EP", will have the following format: "F.EPH7".

Remarks

If the requested symbol name is invalid the instrumentNames collection will be empty.

Example

The examples below show how to request a symbol list, handle its resolution event, and operate with the received collection.

VB
CS
 
 

See Also