static public field O2GResponseType.MarketDataSnapshot

Brief

The constant represents the type of a response to a request for historical prices information.

Details

Historical prices are requested by calling the IO2GSession.sendRequest method. For example,

mSession.sendRequest(request);

The request argument is an instance of the IO2GRequest class that must be created by using the IO2GRequestFactory.createMarketDataSnapshotRequestInstrument method and filled by using the IO2GRequestFactory.fillMarketDataSnapshotRequestTime method.

The response to this request is of the MarketDataSnapshot type. An instance of the IO2GResponse class is the response parameter in your implementation of the IO2GResponseListener.onRequestCompleted method.

To process contents of a response object of the MarketDataSnapshot type, use an instance of the IO2GMarketDataSnapshotResponseReader class.

For complete details on requesting historical prices, refer to the How to get historic prices section.

Declared in O2GResponseType

back