class IO2GRequestFactory

Parents
IAddRef

Brief

A request factory.

Details

A request factory is used to create and fill parameters for all server requests.

To get an instance of the request factory, use the IO2GSession.getRequestFactory method.

Public Methods

createMarketDataSnapshotRequestInstrument

Creates a market data snapshot (get price history) request.

createOrderRequest

Generates a request for creation of an order.

createRefreshTableRequest

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

createRefreshTableRequestByAccount

Creates a request for a table containing data about one account. It is usually used to request data about Orders table on an account from the server.

createValueMap

Creates a value map.

fillMarketDataSnapshotRequestTime

Fills the date/time range of the market data snapshot.

getLastError

Gets information about the error (for example, when incorrect request parameters are specified).

getTimeFrameCollection

Returns the collection of time frames which can be used for the market data snapshot request.

back