☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.4K
All Categories
0
Incidents
167
Node JS client
47
Go client
812
.Net API client
392
Kite Publisher
539
.Net / VBA / Excel (3rd party)
474
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
355
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.5K
General
Can i get GTT order status in websocket streaming?
Shubham0078
June 19
in
Python client
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?
Tagged:
WebSocket
kiteconnect
#gtt #kite #python
Sign In
or
Register
to comment.