stop loss and trailing stoploss orders

archan
@sujith,
I am having trouble placing stop-loss limit and stop-loss market order through API. Can you please tell me which exact parameters are needed to place stop-loss orders for options. For example, I tried placing a stop-loss order for USDINR18MAY68.5CE but instead, it got executed as a market sell order. Please find the API call below
kite.place_order('regular','CDS','USDINR18MAY68.5CE','SELL',1,'NRML','MARKET',trigger_price=0.0875)
also, can you place a trailing stop-loss order for options?
your assistance is highly appreciated.
  • sujith
    You need to send order_type as 'SL-M'.
    The trailing stop-loss concept exists only in bracket orders. We don't allow bracket order for options instruments except for Nifty derivatives.
  • archan
    @sujith, thank you. can you also clear out what the 'stoploss' parameter or argument is for while calling the place_order api. I am confused between the trigger_price and stoploss argument. is stoploss for only futures bracket order and triggerprice for options??
  • sujith
    You can check out this blogpost to know more about bracket order.

    Kite Connect expects points for squareoff, stoploss and trailing stoploss values. You can check out more details here.
  • archan
    thank you @sujith
This discussion has been closed.