class IO2GSessionDescriptor

Parents
IAddRef

Brief

A trading session descriptor.

Details

This class is used to keep information about particular trading session when more than one trading session is available (for O2GSessionStatus::TradingSessionRequested). Please refer to this article for more information.
The trading session descriptors are available via the IO2GSessionDescriptorCollection.

IO2GSessionDescriptor [hide]

 IO2GSessionDescriptorCollection *descriptors = mSession->getTradingSessionDescriptors();
 if (descriptors != 0)
 {
    printf("descriptors available:\n");
    for (int i = 0; i < descriptors->size(); i++)
    {
        IO2GSessionDescriptor *descriptor = descriptors->get(i);
        printf("  id:='%s' name='%s' description='%s' %s\n", descriptor->getID(), descriptor->getName(), descriptor->getDescription(), descriptor->requiresPin() ? "requires pin" : "");
        descriptor->release();
    }
    descriptors->release();
 }

Public Methods

getDescription

Gets the detailed description of the trading session.

getID

Gets the unique identifier of the trading session.

getName

Gets the user-friendly name of the trading session.

requiresPin

Gets the flag indicating whether a pin is required for this trading session.

back