class O2GRequestFactory

Parents
System.IDisposable

Brief

The 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

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

ZERODATE

The value to specify as "date from" and "date to" in order to get the history "up to now".

Public Methods

createMarketDataSnapshotRequestInstrument

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

createOrderRequest

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

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.

Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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