public method O2GClosedTradesTableResponseReader.getRow
Brief
Gets a row from the Closed Trades 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 ClosedTrades table [hide]
O2GResponseReaderFactory factory = mSession.getResponseReaderFactory(); if (factory != null) { O2GLoginRules loginRules = mSession.getLoginRules(); O2GResponse closedTradesResponse = loginRules.getTableRefreshResponse(O2GTableType.ClosedTrades); O2GClosedTradesTableResponseReader reader = factory.createClosedTradesTableReader(closedTradesResponse); for (int i = 0; i < reader.Count; i++) { O2GClosedTradeRow row = reader.getRow(i); Console.WriteLine("TradeID={0}, CloseRate={1}, GrossPL={2}", row.TradeID, row.CloseRate, row.GrossPL); } }
Declared in O2GClosedTradesTableResponseReader