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 | |
|
Gets the unique identifier of the time frame. |
|
|
Gets the query depth of the time frame. |
|
|
Gets the number of units in the time frame. |
|
|
Gets time measurement unit. |
|