public method IO2GOffersTableResponseReader.getRow
Brief
Gets a row from the Offers table.
Declaration | ||||
|
Parameters | |
index |
The index of the row. The index must be between |
Details
If the row is not found, the method returns null
.
Example
Get rows from the Offers table [hide]
// Get offers information O2G2Ptr<IO2GResponse> offersResponse = loginRules->getTableRefreshResponse(Offers); O2G2Ptr<IO2GResponseReaderFactory> responseFactory = session->getResponseReaderFactory(); if (responseFactory) { O2G2Ptr<IO2GOffersTableResponseReader> offersReader = responseFactory->createOffersTableReader(offersResponse); for (int i = 0; i < offersReader->size(); ++i) { O2G2Ptr<IO2GOfferRow> offer = offersReader->getRow(i); std::cout << "Instrument = " << offer->getInstrument() << " Bid = " << offer->getBid() << " Ask = " << offer->getAsk() << std::endl; } }
Declared in IO2GOffersTableResponseReader