CQG API 4.0 - Revised
Item Property
See Also  Send Feedback
index_
Zero-based index of item in the collection
CQGTrades Collection : Item Property

Glossary Item Box

Description

Returns the selected trade by its sequential index.

This is the default property.

Property type

Read-only property

Syntax

Visual Basic
Public Property Item( _
   ByVal index_ As Long _
) As CQGTrade

Parameters

index_
Zero-based index of item in the collection

Return Type

If the trade exists in the collection, this property returns the selected trade represented as CQGTrade object.

If the accessed item does not exist, see Accessing non-existent collection items to learn more about the return type.

Example

See the usage of CQGTrades properties in the AccountChanged event's example section.

See Also