How to Create ELS order?
Brief
The article describes how to create ELS orders.
Details
ELS with Primary Market Order
To create ELS with a primary market order, use the following methods:
Methods for creating ELS return a collection of OrdersBatchResultAut
objects.
Each element of the collection contains the result of the operation for each order.
You can retrieve OrderID
for a primary and secondary orders using the property
OrdersBatchResultAut.OrderID
.
If you create ELS with a primary market order:
PrimaryOrderID
, ContingencyType
and ContingencyID
.
Note that the value of the PrimaryOrderID
column equals to the value of the OpenOrderID
column of your position
(see the OpenOrderID
column in the Trades table).To change either a secondary stop or limit order, use the following methods:
TradeDeskAut.ChangeEntryOrder
TradeDeskAut.ChangeOrderRate2
OrdersBatchAut.ChangeEntryOrder
OrdersBatchAut.ChangeOrderRate
To delete either a secondary stop or limit order, use the following methods:
ELS with Primary Entry Order
To create ELS with a primary entry order, use the following methods:
If you create ELS order with a primary entry order:
TradeDeskAut.SetRowsFilterType
to show Stop/Limit in the Orders table.TradeDeskAut.SetRowsFilterType
must be used before login.PrimaryOrderID
, ContingencyType
and ContingencyID
.
For the description of the columns, please see Orders table.To change a primary entry order, use the following methods:
TradeDeskAut.ChangeEntryOrder
TradeDeskAut.ChangeEntryOrderAmount
TradeDeskAut.ChangeOrderRate2
OrdersBatchAut.ChangeEntryOrder
OrdersBatchAut.ChangeEntryOrderAmount
OrdersBatchAut.ChangeOrderRate
To change either a secondary stop or limit order associated with the entry order within ELS, use the method:
To delete a primary entry order, or either a secondary stop or limit order, use the following methods: