CQG API 4.0 - Revised
LegCount Property
See Also  Send Feedback
CQGFill Interface : LegCount Property

Glossary Item Box

Description

Returns the actual number of legs for the current fill.

Property type

Read-only property

Syntax

Visual Basic
Public Property LegCount As Long

Return Type

Number of legs represented as Long

Remarks

This property gives the actual number of fill legs. 

It was described in the remarks section of CQGFill that user can get common information by giving 0 as an argument to fill's properties. But that is not a separate leg and it is not included in the LegCount. So if this property returns 4, then user can get information on each leg by giving indexes from 1 to 4. At the same time he/she can get spread info by giving index = 0.

For orders on spread instruments, there will be more than one leg.

For outright orders, there will be only one leg.

Example

See the usage of CQGFill properties in the OrderChanged event's example section.

See Also