class IO2GLastOrderUpdateResponseReader

Parents
IAddRef

Brief

The class reads a response to a request for the current state of an order.

Details

To get information about the current state of an order, you must request it. The process of requesting the current order state consists of several steps that are described in the Get Last Order Update section.
The possible states of different order types are described in the Orders State Machines section.

As an answer to the request, the trading server sends a response object of the GetLastOrderUpdate type. This object is the response parameter in your implementation of the IO2GResponseListener.onRequestCompleted method. To process the response contents, you must use an instance of the IO2GLastOrderUpdateResponseReader class.

To create an instance of the IO2GLastOrderUpdateResponseReader class, pass the response object as an argument to the IO2GResponseReaderFactory.createLastOrderUpdateResponseReader method. For example,

O2GLastOrderUpdateResponseReader orderReader = factory.createLastOrderUpdateResponseReader(response);

Example

Requesting the current order state by the order's unique identifier [show]

Public Methods

getOrder

Gets an instance of the class that provides access to order information.

getUpdateType

Gets the last operation that has been performed with an order.

back