Websocket Order Status is not giving updated data for "modify pending" and "modified" events
-
I am using python SDK to get real time updates of orders for my account. However, for "modify pending" and "modified" events (i.e. AB11 and AB04), orderData that I am getting is stale (i.e. the state which was before modification). How can I get updated params for this order? Can you guys fix these events to give correct and updated data?
Thanks,
Aakash -
@Moderator_3, any update on this?
-
@Moderator_3 , I have faced it several times, sharing data of one of the occurrence below.
I already had an order of IDEA with 2 quantity and 15 price. I modified order to have 4 quantity and 15.5 price. But I receive "modify pending" and "modified" events with stale data (i.e. 2 quantity and 15 price).
- Timestamp: 11-Jun-2024 09:36:14
- Orderid: 240611000191247
- client_code: N255065
Let me know if you need any more information.
-
@Moderator_3 I have tried it several times, but every time I am receiving stale data. Sharing data for one of the occurrence below.
So I already had a limit order for IDEA with 2 quantity and Rs.15 price. I modified the order to have 4 quantity and 15.5 price. As you can see, "modify pending" and "modified" events (i.e. AB11 and AB04) have stale data (state before modification request). But open event is being sent with correct and updated data.
{"user-id": "N255065","status-code": "200","order-status": "AB11","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.0,"triggerprice": 0.0,"quantity": "2","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "2","orderid": "240611000191247","text": "","status": "modify pending","orderstatus": "modify pending","updatetime": "11-Jun-2024 09:36:14","exchtime": "11-Jun-2024 09:35:01","exchorderupdatetime": "11-Jun-2024 09:35:01","fillid": "","filltime": "","parentorderid": ""}} {"user-id": "N255065","status-code": "200","order-status": "AB04","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.0,"triggerprice": 0.0,"quantity": "2","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "2","orderid": "240611000191247","text": "","status": "modified","orderstatus": "open","updatetime": "11-Jun-2024 09:36:14","exchtime": "11-Jun-2024 09:36:14","exchorderupdatetime": "11-Jun-2024 09:36:14","fillid": "","filltime": "","parentorderid": ""}} {"user-id": "N255065","status-code": "200","order-status": "AB01","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.5,"triggerprice": 0.0,"quantity": "4","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "4","orderid": "240611000191247","text": "","status": "open","orderstatus": "open","updatetime": "11-Jun-2024 09:36:14","exchtime": "11-Jun-2024 09:36:14","exchorderupdatetime": "11-Jun-2024 09:36:14","fillid": "","filltime": "","parentorderid": ""}}
-
@Moderator_3 I tried it several times, every time it was giving me stale data. Sharing details of one of occurrence below:
So I already had a limit open order for IDEA at Rs. 15.7 and quantity 4. I modified the order price to be 15.75 and quantity to be 2. I received the following events from order status websocket. You can see order open event (i.e. AB01) has correct data in it. But data in "modify pending" and "modify" events (i.e. AB11 and AB04) is stale (state from before modification).
{"user-id": "N255065","status-code": "200","order-status": "AB11","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.7,"triggerprice": 0.0,"quantity": "4","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "4","orderid": "240610001077257","text": "","status": "modify pending","orderstatus": "modify pending","updatetime": "10-Jun-2024 14:20:34","exchtime": "10-Jun-2024 14:20:06","exchorderupdatetime": "10-Jun-2024 14:20:06","fillid": "","filltime": "","parentorderid": ""}} {"user-id": "N255065","status-code": "200","order-status": "AB04","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.7,"triggerprice": 0.0,"quantity": "4","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "4","orderid": "240610001077257","text": "","status": "modified","orderstatus": "open","updatetime": "10-Jun-2024 14:20:34","exchtime": "10-Jun-2024 14:20:34","exchorderupdatetime": "10-Jun-2024 14:20:34","fillid": "","filltime": "","parentorderid": ""}} {"user-id": "N255065","status-code": "200","order-status": "AB01","error-message": "","orderData": {"variety": "NORMAL","ordertype": "LIMIT","ordertag": "","producttype": "DELIVERY","price": 15.75,"triggerprice": 0.0,"quantity": "2","disclosedquantity": "0","duration": "DAY","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "IDEA-EQ","transactiontype": "BUY","exchange": "NSE","symboltoken": "14366","instrumenttype": "","strikeprice": -1.0,"optiontype": "","expirydate": "","lotsize": "1","cancelsize": "0","averageprice": 0.0,"filledshares": "0","unfilledshares": "2","orderid": "240610001077257","text": "","status": "open","orderstatus": "open","updatetime": "10-Jun-2024 14:20:34","exchtime": "10-Jun-2024 14:20:34","exchorderupdatetime": "10-Jun-2024 14:20:34","fillid": "","filltime": "","parentorderid": ""}}
-
@aakash2610
Can you please reply for the below few question- What is the timestamp, client code and order id ?
So that we can have a look on the logs
Regards,
SmartAPI Team - What is the timestamp, client code and order id ?