how to place target and stop loss orders in F&O

I am trying to place target and stop loss order through python, and only see target order being placed. While the stop loss is not being placed at all. How to place both after i successfully take a position.
  • gkaranam
    @sujith - Can you please help here.
    You can use gtt oco order to place both sl and target. Or,you can place two individual sl and target orders.
  • gkaranam
    thanks @SRIJAN for letting me know that we can place two sell orders after position. Can you point me to the correct parameters required for placing stop loss, i am using the below command.

    kite.place_order(variety="regular", exchange=kite.EXCHANGE_NFO,
    product=kite.PRODUCT_MIS, price=stop_loss)
    SRIJAN edited March 2022
    Order_type would be SL or SLM not LIMIT. If you use sell LIMIT ,and use price below cmp as you are placing sl,it will become a market order and filled immediately. Also,know that you can place both target and sl at once if you have enough margin for second order. Because you can place one squareoff order without paying extra margin. If you don't have extra margin,better use gtt orders.
Sign In or Register to comment.