Receiving "UPDATE" status postback call after "COMPLETE"

Jagruti
I am using KiteConnect's python client to implement my algorithmic trading strategy. I while sending a market order I got UPDATE status message after the "Complete" message. There was a partial trade while matching the order, so the UPDATE message should have been sent before the COMPLETE message.
Is there something wrong or am I missing something?

The following are the log messages: Kindly look at the timestamps and the status of the order.
[2020-07-02 09:26:48.391][StratClass.py:77][INFO]callback {'placed_by': 'FU6022', 'order_id': '200702200314276', 'exchange_order_id': '1400000008781061', 'parent_order_id': '', 'status': 'COMPLETE', 'status_message': '', 'status_message_raw': '', 'order_timestamp': '2020-07-02 09:26:47', 'exchange_update_timestamp': '2020-07-02 09:26:47', 'exchange_timestamp': '2020-07-02 09:26:47', 'variety': 'regular', 'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2070221900PE', 'instrument_token': 11416066, 'order_type': 'MARKET', 'transaction_type': 'SELL', 'validity': 'DAY', 'product': 'MIS', 'quantity': 60, 'disclosed_quantity': 0, 'price': 0, 'trigger_price': 0, 'average_price': 46.5, 'filled_quantity': 60, 'pending_quantity': 0, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {}, 'tag': '', 'guid': '19668Xu2nfeAeTrPgB', 'user_id': 'FU6022', 'unfilled_quantity': 0, 'app_id': 19668, 'checksum': '312d2ca0a41f1c4fc9957cf2d6e12c0b75f35ac9c040373a666a7f4d08222d25'}
[2020-07-02 09:26:48.391][_internal.py:113][INFO]127.0.0.1 - - [02/Jul/2020 09:26:48] "^[[37mPOST /post HTTP/1.1^[[0m" 200 -
[2020-07-02 09:26:48.470][StratClass.py:77][INFO]callback {'placed_by': 'FU6022', 'order_id': '200702200314276', 'exchange_order_id': '1400000008781061', 'parent_order_id': '', 'status': 'UPDATE', 'status_message': '', 'status_message_raw': '', 'order_timestamp': '2020-07-02 09:26:47', 'exchange_update_timestamp': '2020-07-02 09:26:47', 'exchange_timestamp': '2020-07-02 09:26:47', 'variety': 'regular', 'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2070221900PE', 'instrument_token': 11416066, 'order_type': 'MARKET', 'transaction_type': 'SELL', 'validity': 'DAY', 'product': 'MIS', 'quantity': 60, 'disclosed_quantity': 0, 'price': 0, 'trigger_price': 0, 'average_price': 46.5, 'filled_quantity': 20, 'pending_quantity': 40, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {}, 'tag': '', 'guid': '19668Xu2nfeAeTrPgB', 'user_id': 'FU6022', 'unfilled_quantity': 0, 'app_id': 19668, 'checksum': '312d2ca0a41f1c4fc9957cf2d6e12c0b75f35ac9c040373a666a7f4d08222d25'}
  • sujith
    These are async calls, the system just sends a notification when OMS triggers it.
    You can handle it at your end.
  • Jagruti
    ok, thanks.
This discussion has been closed.