CQG API 4.0 - Revised
SessionNumber Property
See Also  Send Feedback
CQGInstrument Interface : SessionNumber Property

Glossary Item Box

Description

Returns the currently trading session number.

Property type

Read-only property

Syntax

Visual Basic
Public Property SessionNumber As Long

Return Type

Session number represented as Long

Remarks

This is a dynamic property of an instrument.

If there is no session today, then the value is "-1".

If the current moment is between sessions, then the value is "-2".

Example

To access the Instrument properties, see the example section of the InstrumentSubscribed event.

See Also