public method IO2GMarketDataSnapshotResponseReader.getVolume

Brief

Gets the tick volume of a bar.

Declaration
C++
virtual int  getVolume (int index) = 0

Parameters
index

The index of a bar in the reader. The index must be between 0 and size() - 1.

Details

The return value of the method represents the number of times the price changes during a time frame.
To get a calendar instance representing the beginning of a time frame, use the getDate method of the class.

For the list of common time frames, refer to the IO2GTimeframe class documentation.

It is applicable only if the returned value in the response is represented as a bar. Otherwise, the method returns 0.

Declared in IO2GMarketDataSnapshotResponseReader

back