CQG API 4.0 - Revised
Item Property
See Also  Send Feedback
instrument_name
CQGPositions Collection : Item Property

Glossary Item Box

Description

Returns the selected position by its instrument full name.

This is the default property.

Property type

Read-only property

Syntax

Visual Basic
Public Property Item( _
   ByVal instrument_name As String _
) As CQGPosition

Parameters

instrument_name

Return Type

If the position exists in the collection, this property returns the selected position represented as CQGPosition 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 CQGPositions properties in the AccountChanged event's example section.

See Also