Difference in instrument tokens, between the one I used to place order and the one in the Holdings.

AJ2610
How can there be a difference between the tokens for the same share. Take tradind symbol= ADANIENT for example, from zerodha dump list, it's instrument_token=6401, but if I fetch the details from holdings, following is the response:
{'status': 'success', 'data': [{'tradingsymbol': 'ADANIENT', 'exchange': 'BSE', 'instrument_token': 131225348, 'isin': 'INE423A01024', 'product': 'CNC', 'price': 0, 'quantity': 0, 'used_quantity': 0, 't1_quantity': 18, 'realised_quantity': 0, 'authorised_quantity': 0, 'authorised_date': '2023-12-14 00:00:00', 'authorisation': {}, 'opening_quantity': 18, 'short_quantity': 0, 'collateral_quantity': 0, 'collateral_type': '', 'discrepancy': False, 'average_price': 2884.9, 'last_price': 2908.35, 'close_price': 2875.8, 'pnl': 422.0999999999967, 'day_change': 32.54999999999973, 'day_change_percentage': 1.1318589609847598}

The instrument token here is 131225348. How can that be?
Although when I fetch the details from the 'Positions', it provides the correct instrument_token.

For IRCTC, in dump token= 3484417
But in Holdings, the token= 138964484

{'tradingsymbol': 'IRCTC', 'exchange': 'BSE', 'instrument_token': 138964484, 'isin': 'INE335Y01020', 'product': 'CNC', 'price': 0, 'quantity': 0, 'used_quantity': 0, 't1_quantity': 67, 'realised_quantity': 0, 'authorised_quantity': 0, 'authorised_date': '2023-12-14 00:00:00', 'authorisation': {}, 'opening_quantity': 67, 'short_quantity': 0, 'collateral_quantity': 0, 'collateral_type': '', 'discrepancy': False, 'average_price': 771.1, 'last_price': 789.75, 'close_price': 778, 'pnl': 1249.5499999999984, 'day_change': 11.75, 'day_change_percentage': 1.5102827763496145},

This fault is making my code falter.
  • rakeshr
    For IRCTC, in dump token= 3484417
    This token is for NSE:IRCTC.
    But in Holdings, the token= 138964484
    This token is for BSE:IRCTC.
    This article explains in detail about different exchange being shown in the holdings.
  • AJ2610
    Thank you for the clarification.
This discussion has been closed.