Trading Commands

Brief

The section describes trading commands that can be created and sent via IO2GRequestFactory.

Details

To request command creation (see IO2GRequestFactory.createOrderRequest), you must fill an instance of IO2GValueMap with command parameters.

The first field is the command. For example, to create an order, fill the Command field of the value map with the "CreateOrder" value.

Please refer to one of the articles below for details on how to fill the value map for each command.

Note: Examples are available for the following commands:

Create Order, Open Market

An open market order opens a position at any currently available market rate.

Create Order, Open

An open order opens a position at the specified market rate in case such rate is available on the market.

Create Order, Open Range

An open range order opens a position at the available market rate in case this rate is in the range specified in the command.

Create Order, Open Limit

An open order opens a position at the specified market rate or at a more favorable rate in case such rate is available on the market.

Create Order, Close Market

A close market order closes a position at any currently available market rate.

Create Order, Close

A close order closes a position at the specified market rate in case such rate is available on the market.

Create Order, Close Range

A close range order closes a position at the available market rate in case this rate is in the range specified in the command.

Create Order, Close Limit

A close order closes a position at the specified market rate or at a more favorable price in case such rate is available on the market.

Create Order, Limit Entry

A regular entry order opens a position when the specified market condition is met.

Create Order, Stop Entry

A regular entry order opens a position when the specified market condition is met.

Create Order, Entry

A regular entry order opens a position when the specified market condition is met.

Create Order, Limit

A limit order is used for locking in profit of the existing position when the market condition is met.

Create Order, Stop

A stop order is used for limiting losses of the existing position when the market condition is met.

Edit Order

Only Entry Stop (SE), Entry Limit (LE), Stop (S) and Limit (L) orders (and all their modifications) in the Waiting ("W") state can be changed.

Attach Stop/Limit Orders

Orders which create a new position (OM, O, OR, SE and LE orders) may also have additional values in the value map, which forces creating associated stop and limit orders.

Delete Order

Delete an order.

Create OCO Order

Create two or more entry orders and then join them into OCO using just one call.

Create OTO Order

Create two or more entry orders and then join them into OTO (one-triggers-others) using just one call.

Create New Contingency Group

Join two or more existing entry orders into a new contingency (OCO, OTO or ELS) group.

Add Existing Orders into Existing Contingency Group

Add one or more existing entry order into an existing contingency (OCO, OTO or ELS) group.

Remove Orders from Existing Contingency Group

Remove one or more orders from an existing contingency (OCO, OTO or ELS) group.

Set Subscription Status

Set Subscription Status.

Update Margin Requirements

Get margin requirements for an instrument after subscribing to it.

Accept Order

Accept order requoted by the dealer.

Change Password

Change current password to new.

Articles

Create Order

Create OCO Orders

Create OTO Orders

Create New Contingency Group

Add Existing Orders into Existing Contingency Group

Remove Orders from Existing Contingency Group

Edit Order

Delete Order

Set Subscription Status

Update Margin Requirements

Get Last Order Update

Get the up-to-date order information from the server.

Accept Order

Accept order requoted by the dealer.

Change Password

Change password.

back