class O2GRequestFactory

Brief

A request factory.

Details

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

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

The type defined in the fxcore2.dll assembly. The namespace is fxcore2.

Public Properties

Timeframes

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

ZERODATE

The value specify as "date to" to get the most recent data ("up to now"); it is also the value to specify as "date from" to get the maximum number of bars.

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 and subscribe to further updates. 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 on an account from the server.

createValueMap

Creates a value map. Used to combine order parameters to create an order.

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).

back