Order UPDATE status received after COMPLETE

VipulK
One of the orders I placed with the API returned COMPLETE status and then UPDATE status with partial fill. This made the system save the last order status as UPDATE while the order was actually complete. I think the UPDATE status arrived late. What can I do to handle situations like this?
2020-02-19 11:59:02: {
"placed_by":"XXXXXX",
"order_id":"22222222222222",
"exchange_order_id":"1111111111111111",
"parent_order_id":"",
"status":"COMPLETE",
"status_message":"",
"status_message_raw":"",
"order_timestamp":"2020-02-19 11:59:02",
"exchange_update_timestamp":"2020-02-19 11:59:02",
"exchange_timestamp":"2020-02-19 11:59:02",
"variety":"regular",
"exchange":"NSE",
"tradingsymbol":"NIITLTD",
"instrument_token":2949633,
"order_type":"MARKET",
"transaction_type":"BUY",
"validity":"DAY",
"product":"CNC",
"quantity":18,
"disclosed_quantity":0,
"price":0,
"trigger_price":0,
"average_price":109.4,
"filled_quantity":18,
"pending_quantity":0,
"cancelled_quantity":0,
"market_protection":0,
"meta":{},
"tag":"",
"guid":"14292XWKARw23G4OaN",
"user_id":"XXXXXX",
"unfilled_quantity":0,
"app_id":XXXXX,
"checksum":"93ac76078cfccc1ae378fdb98fc1ce23bbf2386a74a8cf94c4227ee278c30672"
}
2020-02-19 11:59:02: {
"placed_by":"XXXXXX",
"order_id":"22222222222222",
"exchange_order_id":"1111111111111111",
"parent_order_id":"",
"status":"UPDATE",
"status_message":"",
"status_message_raw":"",
"order_timestamp":"2020-02-19 11:59:02",
"exchange_update_timestamp":"2020-02-19 11:59:02",
"exchange_timestamp":"2020-02-19 11:59:02",
"variety":"regular",
"exchange":"NSE",
"tradingsymbol":"NIITLTD",
"instrument_token":2949633,
"order_type":"MARKET",
"transaction_type":"BUY",
"validity":"DAY",
"product":"CNC",
"quantity":18,
"disclosed_quantity":0,
"price":0,
"trigger_price":0,
"average_price":109.4,
"filled_quantity":11,
"pending_quantity":0,
"cancelled_quantity":0,
"market_protection":0,
"meta":{},
"tag":"",
"guid":"14292XWKARw23G4OaN",
"user_id":"XXXXXX",
"unfilled_quantity":0,
"app_id":XXXXX,
"checksum":"93ac76078cfccc1ae378fdb98fc1ce23bbf2386a74a8cf94c4227ee278c30672"
}
  • sujith
    These are async events fired from the OMS. We have raised this query with them multiple times. They still haven't figured out the solution for this.
    An executed order will either have the status COMPLETE, CANCELLED, REJECTED. If you see any of these statuses for an order then don't replace the status with UPDATE.
  • VipulK
    Right. Okay thanks
This discussion has been closed.