CQG API 4.0 - Revised
RequestTradableCommodities Method
See Also  Send Feedback
gw_account_id

Gateway account ID, for which tradable commodities are requested, represented as Long.

If the gw_account_id is not specified or it is zero, all tradable commodities for all gateway accounts the current trader is assigned to, will be requested.

Otherwise, only commodities that are allowed to be traded by the active gateway account with gw_account_id , will be requested.

For more details on account identifiers, see CQGAccount.GWAccountID.

CQGCEL Interface : RequestTradableCommodities Method

Glossary Item Box

Description

Starts an asynchronous query for tradable commodities.

Syntax

Visual Basic
Public Sub RequestTradableCommodities( _
   Optional ByVal gw_account_id As Long = 0 _
) 

Parameters

gw_account_id

Gateway account ID, for which tradable commodities are requested, represented as Long.

If the gw_account_id is not specified or it is zero, all tradable commodities for all gateway accounts the current trader is assigned to, will be requested.

Otherwise, only commodities that are allowed to be traded by the active gateway account with gw_account_id , will be requested.

For more details on account identifiers, see CQGAccount.GWAccountID.

Remarks

Requires the user to be logged on to the CQG gateway.

The outcome of the request, as well as any errors, are reported via TradableCommoditiesResolved event, which is fired only once per request.

Example

See the usage of RequestTradableCommodities method in the TradableCommoditiesResolved event's example section.

See Also