class O2GSessionDescriptor

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 O2GSessionStatusCode.TRADING_SESSION_REQUESTED). Please refer to this article for more information.
The trading session descriptors are available via the O2GSessionDescriptorCollection.

O2GSessionDescriptor [hide]

O2GSessionDescriptorCollection descs = mSession.getTradingSessionDescriptors();
System.out.println("\nSession descriptors");
System.out.println("id, name, description, requires pin");
for (O2GSessionDescriptor desc : descs) {
System.out.println(desc.getId() + " " + desc.getName() + " " + desc.getDescription() + " " + desc.isPinRequired());
}

The namespace is com.fxcore2.

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.

isPinRequired

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

back