class IO2GSummaryTable
Parents | |
IO2GTable |
Brief
The class keeps in memory the up-to-date summary information per the instrument traded.
Details
The class is an in-memory representation of the Summary table.
In order to keep this representation
in sync with the trading server, you must instantiate the class and listen to the updates coming from the trading server.
The class provides methods to find summary for every currently traded instrument represented by the IO2GSummaryTableRow
.
Prerequisites
The class is available only through the use of the IO2GTableManager
. An IO2GTableManager
object must have the O2GTableManagerStatus.TablesLoaded status.
For complete instructions on the table manager usage, see the
How to use table manager in ForexConnect API section.
Instantiating the class
In order to get summary information for the first time, you must obtain an instance of the class by calling the
IO2GTableManager
.getTable
method. For example,
O2GSummaryTable summaryTable = (O2GSummaryTable)tableManager.getTable(O2GTable::Summary);
Receiving notifications about the Summary table updates
In order to keep the O2GSummaryTable
data current, your application must listen to the Summary table updates coming from the trading server.
These updates represent inserts into the table, changes of the summary information, and deletions from the table.
An instance of the class implementing the IO2GTableListener
interface
must be subscribed to the table updates. Subscription to each update type is done individually. Before the logout, you must unsubscribe the listener from every update type separately.
The table below shows the subscription/unsubsription syntax for the O2GSummaryTable
:
Update type |
Subscribe syntax |
Unsubscribe syntax |
Insert |
|
|
Update |
|
|
Delete |
|
|
Public Methods | |
Gets an instance of the class that provides access to the list of table columns. |
|
Finds a row in the |
|
Iterates through the rows of the table. |
|
Gets the value of a cell. |
|
Gets a generic row by its index. |
|
Gets the next row from the |
|
Gets the next row from |
|
Gets the next row from |
|
Gets the next row from |
|
Gets the next row from the |
|
Gets the next row from |
|
Gets the next row from |
|
Gets the next row from |
|
Gets a row from the |
|
Gets the status of the table. |
|
Gets the type of a trading table. |
|
Defines whether the cell is changed. |
|
Checks whether the cell value can be used or not. |
|
Gets the number of rows in the reader. |
|
Subscribes table listener to changes in table status. |
|
Subscribes table listener to table updates. |
|
Unsubscribes table listener from changes in table status. |
|
Unsubscribes table listener from table updates. |