enum O2GRequestParamsEnum

Brief

The enum defines a set of constants representing the name of a parameter of an order request, an instrument subscription request, and get margin requirements request.

Details

The O2GRequestFactory.createOrderRequest method is used to create the following requests:

The method uses the O2GValueMap object as an argument. The value map object has the setBoolean, setDouble, setInt, and setString methods. These methods are used to set the values of the O2GRequestParamsEnum parameters.

Every parameter has two attributes: name and value.
The names of the parameters are listed in the table below.
For the set of the parameters that are required for a particular request, refer to the Trading Commands section.

The namespace is com.fxcore2.

Static Public Fields

ACCOUNT_ID

The constant represents the name of the account identification number parameter.

AMOUNT

The constant represents the name of the order amount parameter.

BUY_SELL

The constant represents the name of the order direction parameter.

COMMAND

The constant represents the name of the command parameter.

CONTINGENCY_GROUP_TYPE

The constant represents the name of the contingent order type parameter.

CONTINGENCY_ID

The constant represents the name of the contingent order identification number parameter.

CUSTOM_ID

The constant represents the name of the order request comments parameter.

NET_QUANTITY

The constant represents the name of the net amount order parameter.

OFFER_ID

The constant represents the name of the instrument identification number parameter.

ORDER_ID

The constant represents the name of the order identification number parameter.

ORDER_TYPE

The constant represents the name of the order type parameter.

PEG_OFFSET

The constant represents the name of the order price offset parameter.

PEG_OFFSET_LIMIT

The constant represents the name of the associated limit order price offset parameter.

PEG_OFFSET_STOP

The constant represents the name of the associated stop order price offset parameter.

PEG_TYPE

The constant represents the name of the order pegged price parameter.

PEG_TYPE_LIMIT

The constant represents the name of the associated limit order pegged price parameter.

PEG_TYPE_STOP

The constant represents the name of the associated stop order pegged price parameter.

RATE

The constant represents the name of the order rate parameter.

RATE_LIMIT

The constant represents the name of the associated limit order rate parameter.

RATE_MAX

The constant represents the name of the open/close range order maximum rate parameter.

RATE_MIN

The constant represents the name of the open/close range order minimum rate parameter.

RATE_STOP

The constant represents the name of the associated stop order rate parameter.

SUBSCRIPTION_STATUS

The constant represents the name of the instrument subscription status parameter.

TIME_IN_FORCE

The constant represents the name of the time-in-force order parameter.

TRADE_ID

The constant represents the name of the position identification number parameter.

TRAIL_STEP

The constant represents the name of the order trailing step parameter.

TRAIL_STEP_STOP

The constant represents the name of the associated stop order trailing step parameter.

back