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:
An open market order opens a position at any currently available market rate. |
|
An open order opens a position at the specified market rate in case such rate is available on the market. |
|
An open range order opens a position at the available market rate in case this rate is in the range specified in the command. |
|
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. |
|
A close market order closes a position at any currently available market rate. |
|
A close order closes a position at the specified market rate in case such rate is available on the market. |
|
A close range order closes a position at the available market rate in case this rate is in the range specified in the command. |
|
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. |
|
A regular entry order opens a position when the specified market condition is met. |
|
A regular entry order opens a position when the specified market condition is met. |
|
A regular entry order opens a position when the specified market condition is met. |
|
A limit order is used for locking in profit of the existing position when the market condition is met. |
|
A stop order is used for limiting losses of the existing position when the market condition is met. |
|
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. |
|
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 an order. |
|
Create two or more entry orders and then join them into OCO using just one call. |
|
Create two or more entry orders and then join them into OTO (one-triggers-others) using just one call. |
|
Join two or more existing entry orders into a new contingency (OCO, OTO or ELS) group. |
|
Add one or more existing entry order into an existing contingency (OCO, OTO or ELS) group. |
|
Remove one or more orders from an existing contingency (OCO, OTO or ELS) group. |
|
Set Subscription Status. |
|
Get margin requirements for an instrument after subscribing to it. |
|
Accept order requoted by the dealer. |
|
Change current password to new. |
Articles | |
Get the up-to-date order information from the server. |
|
Accept order requoted by the dealer. |
|
Change password. |