public method IO2GTableManager.getTable

Brief

Gets an instance of a trading table.

Declaration
C++
virtual IO2GTable getTable (O2GTable tableType) = 0

Parameters
tableType

A trading table. The possible values are shown below..

Details

The method returns an instance of one of the IO2GTable subclasses. You must cast the returned value to the corresponding type. The examples are shown below.

Table type argument

Return value type

Messages

IO2GMessagesTable

ClosedTrades

IO2GClosedTradesTable

Trades

IO2GTradesTable

Orders

IO2GOrdersTable

Accounts

IO2GAccountsTable

Offers

IO2GOffersTable

Summary

IO2GSummaryTable

getTable [hide]

 session->useTableManager(Yes, NULL);
 session->login(user.c_str(), password.c_str(), url.c_str(), connection.c_str());
 //...
 IO2GTableManager *tableManager = session->getTableManager();
 while (tableManager->getStatus() != TablesLoaded && tableManager->getStatus() != TablesLoadFailed)
     uni::Sleep(50);
 if (tableManager->getStatus() == TablesLoaded)
 {
   IO2GOrdersTable *ordersTable = (IO2GOrdersTable *)tableManager->getTable(::Orders);
   //...
   ordersTable->release();
 }
 tableManager->release();

Declared in IO2GTableManager

back