SL-M order returns success but trigger_price is not changing

Arulmuruga
Hi Experts,
when i issue the following put request, 200 response is received.however my changes are not reflecting in the order .

Request:
======
PUT /orders/regular/1111111111 HTTP/1.1
Authorization: token aaaaaaaaaa:bbbbbbbbbbbbb
Host: api.kite.trade
X-Kite-Version: 3
Content-Type: application/x-www-form-urlencoded
Content-Length: 49

{
"order_type": "SL-M",
"trigger_price": 23
}

Response:
=======
{
"status": "success",
"data": {
"order_id": "1111111111"
}
}
Could you please help on this

Arul
Tagged:
  • Arulmuruga
    forgot to mention, this request is to modify the existing SL-M order
  • sujith
    You can refer to this thread.
  • Arulmuruga
    Hi @sujith
    My modify orders are still not working .I see the time being updated once the request is sent but the order properties are not changing

    I don't see any failure reason in the order status
    12:32:14","variety":"regular","exchange":"NFO","tradingsymbol":"NIFTY2121815200PE","instrument_token":12223234,"order_type":"SL-M","transaction_type":"SELL","validity":"DAY","product":"NRML","quantity":75,"disclosed_quantity":0,"price":0,"trigger_price":119,"average_price":0,"filled_quantity":0,"pending_quantity":75,"cancelled_quantity":0,"market_protection":0,"meta":{},"tag":null,"guid":"19Xarxsstbzcwnv"}]}

    Order History shows..
    12:32:14 MODIFIED 12:32:14 12:32:14 75 0 0 0

    My new request is something like this..

    PUT /orders/regular/XXXXXXXXXXXXX HTTP/1.1
    Authorization: token aaaaaaaa:bbbbbbbbbb
    Host: api.kite.trade
    X-Kite-Version: 3
    Content-Length: 71

    transaction_type='SELL'&order_type='SL-M'&trigger_price=50.0&tag='test'


    Could you please help me resolving this issue...
    thanks in Advance
  • rakeshr
    @Arulmuruga
    My modify orders are still not working .I see the time being updated once the request is sent but the order properties are not changing
    We are not able to understand your issue here. Do you mean, postback status for SL-M order modification is showing the previous/non-updated value or complete order book fetch is showing non-updated value?
    You can go through this thread, which explains a similar scenario.
  • Arulmuruga
    Arulmuruga edited February 2021
    Hi Rakesh,
    Not the postback status..
    1.I send a modify request(http PUT as mentioned in my above comment.
    2.I got the following response
    {
    "status": "success",
    "data": {
    "order_id": "XXXXXXXXXXXXXX"
    }
    }

    3. checked the order status under https://api.kite.trade/orders..my order has the updated timestamp here but the trigger price ,tag etc didnt change
    4. I checked the order history in https://kite.zerodha.com/orders ,which shows the order has been modified "12:32:14 MODIFIED 12:32:14 12:32:14 75 0 0 0"

    basically , modify is not working except for the timestamp change..Am I missing naything in my http-put request shown above ?
  • sujith
    Do you see any message on the status message field?
  • Arulmuruga
    @sujith No, i did not see any status message ..
    infact, i dont see the status message field even for the orders placed using the kite app
  • sujith
    A 200 response for modify request only means the request is placed successfully. One needs to fetch orderbook and check if the order is actually modified or not because every order modify goes through RMS checks.
  • Arulmuruga
    Hi @sujith , I am checking for the status in the order book only ..there is no update on my pending order except time ..I see the status changing like this..TRIGGER PENDING(initial state)-->MODIFY VALIDATION PENDING-->MODIFY PENDING--> MODIFIED ->TRIGGER PENDING

    however ,after this , i dont see the modified value in the order.

    I also dont see any status message.
    please help on this
  • sujith
    Can you paste the orderbook response or order history response for this order?
  • Arulmuruga
    Below is the order history response..

    SELL NIFTY2121815250CE NFO#210215103173434
    Time Status Exch. time Exch. update Qty. Filled qty. Avg. price Price
    14:27:28 TRIGGER PENDING 14:27:28 14:27:28 75 0 0 0
    14:27:28 MODIFIED 14:27:28 14:27:28 75 0 0 0
    14:27:28 MODIFY PENDING 14:26:51 14:26:51 75 0 0 0
    14:27:28 MODIFY VALIDATION PENDING 14:26:51 14:26:51 75 0 0 0
    14:26:51 TRIGGER PENDING 14:26:51 14:26:51 75 0 0 0
    14:26:51 MODIFIED 14:26:51 14:26:51 75 0 0 0
    14:26:51 MODIFY PENDING 14:26:00 14:26:00 75 0 0 0
    14:26:51 MODIFY VALIDATION PENDING 14:26:00 14:26:00 75 0 0 0
    14:26:00 TRIGGER PENDING 14:26:00 14:26:00 75 0 0 0
    14:26:00 OPEN PENDING — — 75 0 0 0
    14:26:00 VALIDATION PENDING — — 75 0 0 0
    14:26:00 PUT ORDER REQ RECEIVED — — 75 0 0 0
  • Arulmuruga
    @sujith , please have a look at the order history above ...and the order book status is as below

    14:26:00 SELL NIFTY 18th w FEB 15250 CE NFO
    NRML 0 / 75 126.90 0.00 / 30.00 trg. TRIGGER PENDING
  • rakeshr
    @Arulmuruga
    NRML 0 / 75 126.90 0.00 / 30.00 trg. TRIGGER PENDING
    Is this not the update trigger_price in orderbook?
    If not, then you need to check if you are sending the same trigger_price is modify order as well.
    We just checked the same scenario of updating pending SLM trigger_price at our end and it's working fine.
  • Arulmuruga
    Hi @rakeshr , 30 is my initial tirgger_price... modified trigger_price must have been 10
  • rakeshr
    If not, then you need to check if you are sending the same trigger_price is modify order as well.
    You need to check into this if you are sending the correct modify price. Maybe print trigger_price and modify trigger_price and debug it.
Sign In or Register to comment.