Can i get GTT order status in websocket streaming?

Shubham0078
def on_order_update(ws, data):
print("UPDATED STATUS: ",data)



kws.on_order_update = on_order_update

it is working for regular orders, but there was a situation where i had placed a GTT order, upon trigger the callback printed this


# Connected. Subscribing...
# UPDATED STATUS:
# {'account_id': 'AUX273',
# 'unfilled_quantity': 0, '
# checksum': '',
# 'placed_by': 'AUX273',
# 'order_id': '250619000751636',
# 'exchange_order_id': '1200000035499339',
# 'parent_order_id': None,
# 'status': 'OPEN',
# 'status_message': None,
# 'status_message_raw': None,
# 'order_timestamp': '2025-06-19 11:32:11',
# 'exchange_update_timestamp': '2025-06-19 11:32:11',
# 'exchange_timestamp': '2025-06-19 11:32:11',
# 'variety': 'regular',
# 'exchange': 'NSE',
# 'tradingsymbol': 'ONGC',
# 'instrument_token': 633601,
# 'order_type': 'LIMIT',
# 'transaction_type': 'SELL',
# 'validity': 'DAY',
# 'product': 'CNC',
# 'quantity': 1,
# 'disclosed_quantity': 0,
# 'price': 249.9,
# 'trigger_price': 0,
# 'average_price': 0,
# 'filled_quantity': 0,
# 'pending_quantity': 1,
# 'cancelled_quantity': 0,
# 'market_protection': 0,
# 'meta': {'gtt': True},
# 'tag': None,
# 'guid': None}

# UPDATED STATUS: {'account_id': 'AUX273', 'unfilled_quantity': 0, 'checksum': '', 'placed_by': 'AUX273', 'order_id': '250619000751636', 'exchange_order_id': '1200000035499339', 'parent_order_id': None, 'status': 'COMPLETE', 'status_message': None, 'status_message_raw': None, 'order_timestamp': '2025-06-19 11:32:14', 'exchange_update_timestamp': '2025-06-19 11:32:14', 'exchange_timestamp': '2025-06-19 11:32:11', 'variety': 'regular', 'exchange': 'NSE', 'tradingsymbol': 'ONGC', 'instrument_token': 633601, 'order_type': 'LIMIT', 'transaction_type': 'SELL', 'validity': 'DAY', 'product': 'CNC', 'quantity': 1, 'disclosed_quantity': 0, 'price': 249.9, 'trigger_price': 0, 'average_price': 249.9, 'filled_quantity': 1, 'pending_quantity': 0, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {'gtt': True}, 'tag': None, 'guid': None}



so I thought the calllback was also working for the GTT orders but after that when I had placed couple of GTT orders , even the GTT orders triggered the callback didn't print anythong this time, Am i missing here something?
Sign In or Register to comment.