It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
How can I fire a cover order with stoploss?
Kite example has no reference to SL. How can i include SL as well here? Here is trigger price same as the current market price??
OrderParams orderParams = new OrderParams();
orderParams.price = 0.0;
orderParams.quantity = 1;
orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.tradingsymbol = "SOUTHBANK";
orderParams.exchange = Constants.EXCHANGE_NSE;
orderParams.validity = Constants.VALIDITY_DAY;
orderParams.triggerPrice = 30.5;
orderParams.product = Constants.PRODUCT_MIS;
Order order11 = kiteConnect.placeOrder(orderParams, Constants.VARIETY_CO);
Kite Connect supports only two types of cover order, one is MARKET entry type and LIMIT entry type.
If you are referring to second leg order then the system will take care of placing the second leg order. You don't have to place it.
The trigger price you enter is for stop-loss in the above request. You need to make sure you send the value within the trigger range. You can check out example file in the javakiteconnect repository to fetch the trigger_range.