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:

  1. Your position appears in the Trades table. Stop and Limit columns for your position have zero values.
  2. Your secondary Stop and Limit orders are displayed in the Orders table as separate records. The following columns of the table are filled for them: 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:

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:

  1. Your entry order appears in the Orders table. Stop and Limit columns for your entry order have zero values.
  2. Your secondary Stop and Limit orders are not displayed in the Orders table by default. However, you can set up the extended filtering using the method TradeDeskAut.SetRowsFilterType to show Stop/Limit in the Orders table.
    Please note that TradeDeskAut.SetRowsFilterType must be used before login.
  3. If extended filtering is set up, your secondary Stop and Limit orders become visible in the Orders table. They are displayed as separate records. The following columns of the table are filled for them: PrimaryOrderID, ContingencyType and ContingencyID. For the description of the columns, please see Orders table.

To change a primary entry order, use the following methods:

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:

back