I'm using postback url to get order update/complete notifications. From Monday somehow, Stopped getting order updates for SL-L orders. I'm getting updates for Market orders. But there is no postback for SL-L orders. All orders are placed using API.
Please let me know if more information is required.
@rakeshr No, it is not working fine. Kindly check in live market by placing an actual order. I am also facing this issue since Monday, infact my code broke on Monday because I blindly relied on websocket order update, so whatever you say that you reproduced or did this or that, I know it's not working fine. So if possible kindly test by placing real order in live market and then fix the problem instead of denying.
I already checked it on live market. {"user_id":"XXXX","unfilled_quantity":0,"app_id":XXXX,"checksum":"XXXXX","placed_by":"XXXX", "order_id":"220927003619598","exchange_order_id":"232227000307364","parent_order_id":null, "status":"COMPLETE","status_me ssage":null,"status_message_raw":null,"order_timestamp":"2022-09-27 17:11:51","exchange_update_timestamp":"2022-09-27 17:11:51","exchange_timestamp":"2022-09-27 17:11:51","variety":"regular","exchange":"MCX","tradingsymbol":"GOLDPETAL22OCTFUT","instrument_token":62 413319,"order_type":"LIMIT","transaction_type":"BUY","validity":"DAY","product":"MIS","quantity":1,"disclosed_q uantity":0,"price":4940,"trigger_price":4939,"average_price":4939,"filled_quantity":1,"pending_quantity":0,"cance lled_quantity":0,"market_protection":0,"meta":{},"tag":"API","tags":["XX"],"guid":"XXXXX"}}
@rakeshr Yes it is happening intermittently. Today also it happened in 3 out of my 14 client accounts, but not in all accounts, all of them running codes built with similar architecture.
Since this problem first happened on Monday, I have added an additional layer that checks order execution status every minute, and have added logging to this layer to know which part of the code is finding out the order update. Postback updates were received by 11 accounts, but not by remaining 3 accounts.
Edited: Just checked today's running logs again. Its actually haphazard. For the first set of orders postback updates were not received by 3 accounts, but for the second set of orders update was not received by just 1 account.
{"user_id":"XXXX","unfilled_quantity":0,"app_id":XXXX,"checksum":"XXXXX","placed_by":"XXXX",
"order_id":"220927003619598","exchange_order_id":"232227000307364","parent_order_id":null,
"status":"COMPLETE","status_me
ssage":null,"status_message_raw":null,"order_timestamp":"2022-09-27
17:11:51","exchange_update_timestamp":"2022-09-27 17:11:51","exchange_timestamp":"2022-09-27
17:11:51","variety":"regular","exchange":"MCX","tradingsymbol":"GOLDPETAL22OCTFUT","instrument_token":62
413319,"order_type":"LIMIT","transaction_type":"BUY","validity":"DAY","product":"MIS","quantity":1,"disclosed_q
uantity":0,"price":4940,"trigger_price":4939,"average_price":4939,"filled_quantity":1,"pending_quantity":0,"cance
lled_quantity":0,"market_protection":0,"meta":{},"tag":"API","tags":["XX"],"guid":"XXXXX"}}
Since this problem first happened on Monday, I have added an additional layer that checks order execution status every minute, and have added logging to this layer to know which part of the code is finding out the order update. Postback updates were received by 11 accounts, but not by remaining 3 accounts.
Edited: Just checked today's running logs again. Its actually haphazard. For the first set of orders postback updates were not received by 3 accounts, but for the second set of orders update was not received by just 1 account.
Can you private message client id and api_key for the ones that didn't receive postback?