public method O2GRequestFactory.createRefreshTableRequest

Brief

Creates a request to get the latest snapshot of the specified table. Do not use this method for ORDERS table, use createRefreshTableRequestByAccount instead.

Declaration
Java
O2GRequest  createRefreshTableRequest (O2GTableType table)

Parameters
table

The identifier of the table.

Details

In response to the request, the table snapshot will be sent and then TABLES_UPDATES messages will be sent each time when the table data is changed on the server.

See the table below for the response types and proper readers for each type of the table:

Table type

Response type

The reader to parse the response

OFFERS

GET_OFFERS

O2GOffersTableResponseReader

ACCOUNTS

GET_ACCOUNTS

O2GAccountsTableResponseReader

TRADES

GET_TRADES

O2GTradesTableResponseReader

CLOSED_TRADES

GET_CLOSED_TRADES

O2GClosedTradesTableResponseReader

MESSAGES

GET_MESSAGES

O2GMessagesTableResponseReader

Declared in O2GRequestFactory

back