Questions regarding SL order placement;

swapnil14702
swapnil14702 edited March 15 in Python client
Q1) Will the order ID be different for tracking open SL Limit order?
Q2) Do we use place_order or modify_order for setting the SL first time for a newly open position?
Q3) Is there a limit of 25 modifications to an SL limit order?
Q4) Main order is executed and lets say we have a position of 3 lots in NIFTY 22500 CE. We use Order ID CE, to modify order to set SL like shown below:
modify_order(kite, order_id_CE, price=new_sl, trigger_price=new_sl, transaction_type="SELL", order_type="SL" )
Will it return a new order ID or else, how would we track the status of pending SL order?
Q5 If I want to cancel my SL order, just to exit at market for some reason, which of the below syntax cancel the open SL order:
result = kite.cancel_order(order_id=order_id)

Or
result = kite.cancel_order(order_id=order_id, order_type="SL")

Appreciate the help in advance! Been through the documentation here https://kite.trade/docs/connect/v3/orders/, but still got the above questions.
  • Sravanthi_bh
    1. the order ID remains the same when modifying an SL limit order.
    2. Need to use place_order for the first time.
    3.Yes, you may check rate limits here.
    4. If the SL order is open, you need to track it using the open SL order ID. Also, please specify whether you want to modify an open order or an already executed order, so we can provide a clearer explanation.
    5. You may refer to the GitHub for more help.
Sign In or Register to comment.