how to place an SL-M & LIMIT order on a market order at the time of order exicution?

amandeep179018
order_id = kite.place_order(tradingsymbol=name, # MAIN ORDER
variety=kite.VARIETY_REGULAR,
exchange=kite.EXCHANGE_NSE,
transaction_type=kite.TRANSACTION_TYPE_SELL,
quantity=1,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_MIS)

This is the code for market order and getting the order_id.
How can I place an SL-M and a LIMIT order based on this order_id?

please provide the code of SL-M & LIMIT orders which will be applied to the main MARKET order
  • amandeep179018
    Does using order_type=kite.ORDER_TYPE_SL-M and order_type=kite.ORDER_TYPE_LIMIT block margin.
    if they do then how can I use order_id to not make them block margin.
    like when we manually place an SL-M & LIMIT order on a market order
  • sujith
    @amandeep179018,
    You need to send the price with the above params for the LIMIT order. For SL-M you need to send trigger price with the above params. You can refer to this for a limit order example.

    For an SL-M order, once the trigger is hit. It will become a MARKET order. The margin blocking behavior is the same as the Kite web or Kite mobile app.
  • Imran
    Imran edited May 2020
    .
Sign In or Register to comment.