Starts an asynchronous query for tradable commodities.
Visual Basic |
---|
Public Sub RequestTradableCommodities( _ Optional ByVal gw_account_id As Long = 0 _ ) |
- 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.
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.
See the usage of RequestTradableCommodities method in the TradableCommoditiesResolved event's example section.