Hi, I have been using trading apis quite a time from zerodha and it seems in `order book` api call on 11th May 2023, 14:51-14:56pm whichever orders i was placing i did not get `tag` from response even though i was sending in a n order place request due to which i faced some loss and had to exit all the orders. Attaching the response, please check why tags were not there?
We checked a couple orders and that seems to have been placed on Kite web. Are you sure you sending tags for all orders? Can you give an example order for which tag is not updated?
No i have placed using python client and have software running quite a time. In above json pdf you can see lots of orders have tags but few does not then how is it possible?
The ones that you pointed out were placed from Kite web according to the logs. Kite web orders will not have tags. You can let us know next time when the order which is placed from pykiteconnect, we will check and get back to you.
'placed_by': 'BA2678',
'order_id': '230511203318466',
'exchange_order_id': '1700000200044240',
'parent_order_id': None,
'status': 'COMPLETE',
'status_message': None,
'status_message_raw': None,
'order_timestamp': datetime.datetime(2023, 5, 11, 15, 0, 47), 'exchange_update_timestamp': '2023-05-11 15:00:47', 'exchange_timestamp': datetime.datetime(2023, 5, 11, 15, 0, 47), 'variety': 'regular',
'modified': False,
'exchange': 'NFO',
'tradingsymbol': 'BANKNIFTY2351143400PE', 'instrument_token': 10212354,
'order_type': 'MARKET', 'transaction_type': 'SELL', 'validity': 'DAY', 'validity_ttl': 0,
'product': 'NRML', 'quantity': 150, 'disclosed_quantity': 0, 'price': 0, 'trigger_price': 0, 'average_price': 12.4, 'filled_quantity': 150, 'pending_quantity': 0, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {},
'tag': None,
'guid': '01XRtyALvXcPYSH' }
{
'placed_by': 'BA2678',
'order_id': '230511203231072', 'exchange_order_id': '1500000213885826', 'parent_order_id': None,
'status': 'COMPLETE',
'status_message': None,
'status_message_raw': None,
'order_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'exchange_update_timestamp': '2023-05-11 14:56:22', 'exchange_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'variety': 'regular',
'modified': False,
'exchange': 'NFO',
'tradingsymbol': 'BANKNIFTY2351143600CE',
'instrument_token': 10214402,
'order_type': 'MARKET',
'transaction_type': 'BUY',
'validity': 'DAY',
'validity_ttl': 0,
'product': 'NRML',
'quantity': 150,
'disclosed_quantity': 0,
'price': 0,
'trigger_price': 0,
'average_price': 5.15,
'filled_quantity': 150,
'pending_quantity': 0,
'cancelled_quantity': 0,
'market_protection': 0,
'meta': {},
'tag': None,
'guid': '01XIdHlVh8cBpUl'
}, {
'placed_by': 'BA2678',
'order_id': '230511203231073',
'exchange_order_id': '1700000195977669',
'parent_order_id': None,
'status': 'COMPLETE',
'status_message': None,
'status_message_raw': None,
'order_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'exchange_update_timestamp': '2023-05-11 14:56:22', 'exchange_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'variety': 'regular',
'modified': False,
'exchange': 'NFO',
'tradingsymbol': 'BANKNIFTY2351142600PE',
'instrument_token': 10206466,
'order_type': 'MARKET',
'transaction_type': 'BUY', 'validity': 'DAY', 'validity_ttl': 0,
'product': 'NRML', 'quantity': 150, 'disclosed_quantity': 0, 'price': 0,
'trigger_price': 0, 'average_price': 1.15, 'filled_quantity': 150, 'pending_quantity': 0, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {},
'tag': None,
'guid': '01XlDDdjbeGZOMq' }, {
'placed_by': 'BA2678',
'order_id': '230511203231075',
'exchange_order_id': '1700000195977691',
'parent_order_id': None,
'status': 'COMPLETE',
'status_message': None,
'status_message_raw': None,
'order_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'exchange_update_timestamp': '2023-05-11 14:56:22', 'exchange_timestamp': datetime.datetime(2023, 5, 11, 14, 56, 22), 'variety': 'regular',
'modified': False,
'exchange': 'NFO',
'tradingsymbol': 'BANKNIFTY2351143400PE',
'instrument_token': 10212354,
'order_type': 'MARKET',
'transaction_type': 'BUY',
'validity': 'DAY',
'validity_ttl': 0,
'product': 'NRML',
'quantity': 150,
'disclosed_quantity': 0,
'price': 0,
'trigger_price': 0,
'average_price': 28.5,
'filled_quantity': 150,
'pending_quantity': 0,
'cancelled_quantity': 0, 'market_protection': 0, 'meta': {},
'tag': None,
'guid': '01XUJb3PmL4bBIw' }