class O2GResponseReaderFactory
Brief
The class creates readers to process the content of the trading server responses.
Details
An O2GResponse object contains a response received from the trading server.
To process the contents of the response object, you must use an appropriate reader based on the response type.
For the list of the response types, refer to the O2GResponseType description.
The O2GResponseReaderFactory
class provides methods to create readers for all the response types.
To get an instance of the class, use the
O2GSession
.getResponseReaderFactory
method. For example,
O2GResponseReaderFactory responseFactory = mSession.getResponseReaderFactory();
Example
Get Account ID, Balance and Used margin [show]
The type defined in the fxcore2.dll
assembly.
The namespace is fxcore2
.
Public Methods | |
Creates a reader to process a response to a request for initial account information. |
|
Creates a reader to process a response to a request for initial closed position information. |
|
Creates a reader to process a response to the current state of an order request. |
|
Creates a reader to process a response to a request for historical pricing information. |
|
Creates a reader to process a response to a request for initial message information. |
|
Creates a reader to process a response to a request for initial offer information. |
|
Creates a reader to process a response to a request for an order creation. |
|
Creates a reader to process a response to a request for initial order information. |
|
Creates a reader to process a response to a request for system properties information. |
|
Creates a reader to process a table update response that is provided by the trading server automatically. |
|
Creates a reader to process a response to a request for initial open position information. |
|
Checks whether margin requirements information is loaded or not. |