How to manually update BO or CO ?

nikhil154
How to manually update BO or CO ? I read the documentation , all i can find is cancelling the BO order completely .
  • nikhil154
    kite.modify_order does not work for the above
  • sujith
    Can you elaborate what you are trying to modify? Is it the first leg or second leg? What are the params you are trying to modify?
  • Imran
    hii @nikhil154

    kite.modify_order(variety=kite.VARIETY_BO, order_id=xxxxxx, order_type=kite.ORDER_TYPE_SL, trigger_price=xx)

    worked for me for sl modification
  • nikhil154
    suppose i wanna buy IDEA ,price=40 , sl=36,tsl=2,target=42
    i place the order :
    x=kite.place_order(variety="BO",
    exchange="NSE",
    tradingsymbol="IDEA",
    transaction_type="SELL",
    quantity=1,
    product="MIS",
    order_type="LIMIT",
    price=40,
    squareoff=42,
    stoploss=36,
    trailing_stoploss=2)

    "x" gives the order id

    *Now i wanna modify the sl to 38 , how do i do that ?
  • nikhil154
    @sujith, @Imran , can u guys help me out ?
  • sujith
    The way you are specifying the target and stop-loss is wrong.
    Check out this thread to know how to specify target and stop-loss values.

    Now coming to the modifying part, once the first leg order is executed there will be a stop-loss order.
    You need to find the order id of that order and place a modify request with new price or trigger price.
  • nikhil154
    yeah ...got it ! Thanks
This discussion has been closed.