problem while modify bracket order

kite.ModifyOrder("190621001638860", "1000000003823450",
//TriggerPrice: objScript.OpenPrice + (decimal)0.10,
TriggerPrice: 549.95m,
//Price: objScript.OpenPrice,
Price: 549.85m,
OrderType: Constants.ORDER_TYPE_SL,
Quantity: "1"

can you please let me know why this is happens ? i m trying to modify bracket order from more than 1 month and not done.
this is mot working do you have any perfect solution regarding this?
  • sujith
    Can you let us know the exact response, you are getting?
  • deepmangukiya
    DEBUG: Content-Type: application/x-www-form-urlencoded
    DEBUG: User-Agent: KiteConnect.Net/
    DEBUG: X-Kite-Version: 3
    DEBUG: Authorization: token mldncmddl7i5bdko:f35wqbTQLnWOObfDmYBgbEXmapdJBwCl
    OrderUpdate {"AveragePrice":0,"CancelledQuantity":0,"DisclosedQuantity":1,"Exchange":"NSE","ExchangeOrderId":"1300000005410299","ExchangeTimestamp":"6/21/2019 1:30:06 PM","FilledQuantity":0,"InstrumentToken":895745,"OrderId":"190621001777837","OrderTimestamp":"6/21/2019 1:30:06 PM","OrderType":"SL","ParentOrderId":"190621001433130","PendingQuantity":1,"PlacedBy":"CX3755","Price":450.9,"Product":"BO","Quantity":1,"Status":"UPDATE","StatusMessage":null,"Tag":null,"Tradingsymbol":"TATASTEEL","TransactionType":"SELL","TriggerPrice":496.45,"Validity":"DAY","Variety":"bo"}
    OrderUpdate {"AveragePrice":0,"CancelledQuantity":0,"DisclosedQuantity":1,"Exchange":"NSE","ExchangeOrderId":"1300000005410299","ExchangeTimestamp":"6/21/2019 1:30:06 PM","FilledQuantity":0,"InstrumentToken":895745,"OrderId":"190621001777837","OrderTimestamp":"6/21/2019 1:30:06 PM","OrderType":"SL","ParentOrderId":"190621001433130","PendingQuantity":1,"PlacedBy":"CX3755","Price":450.9,"Product":"BO","Quantity":1,"Status":"TRIGGER PENDING","StatusMessage":null,"Tag":null,"Tradingsymbol":"TATASTEEL","TransactionType":"SELL","TriggerPrice":496.45,"Validity":"DAY","Variety":"bo"}
    DEBUG: 200 {"status":"success","data":{"order_id":"190621001777837"}}
  • deepmangukiya
  • deepmangukiya
  • deepmangukiya
    every time it returns success with order id but when i check after refresh no value is changed in the bracket order. the same value still there what is provided while taking an order.
  • HowUTrade

    You are only permitted to change the trigger price not the limit price.
    Limit price is assigned by OMS (up to upper/lower circuit). You should pass the same Limit price in your request

    In the above request
  • sujith
    A successful order modify request means the request placement is successful. It doesn't mean order modification is successful. If values are not modified then you can check the status message to know the reason for the modify rejection.
  • deepmangukiya
    ok but what does it mean if i only can change trigger price. if my trigger price was at 10 and now i changer it to 20 than what happen? is my trade will exit at 10 or 20?
  • sujith
    If it is SLM then once your trigger is hit then a market order is placed. If it is SL then once trigger is hit a limit order is placed for the user entered price.
    You can know more here.
  • deepmangukiya
    you can close the ticket. it is done.
This discussion has been closed.