class IO2GTimeframe

Parents
IAddRef

Brief

A time frame description.

Details

Each instance of the interface describes one time frame which can be used to load market data snapshots for a certain session.

It is used in the function IO2GRequestFactory.createMarketDataSnapshotRequestInstrument to create market data snapshot request (prepare request to get historic prices).

The time frames are accessible via IO2GTimeframeCollection interface.

IO2GTimeframe [hide]

 IO2GRequestFactory *factory = session->getRequestFactory();
 IO2GTimeframeCollection *timeframe_collection = factory->getTimeFrameCollection();
 int size;
 size = timeframe_collection->size();
 for (int i = 0; i < size; i++)
 {
    IO2GTimeframe *timeframe = timeframe_collection->get(i);
    //...
    timeframe->release();
 }
timeframe_collection->release();
factory->release();

Public Methods

getID

Gets the unique identifier of the time frame.

getQueryDepth

Gets the query depth of the time frame.

getSize

Gets the number of units in the time frame.

getUnit

Gets time measurement unit.

back