Instrument Tokens are not Unique ??

rahul582
instrument_token,exchange_token,tradingsymbol,name,last_price,expiry,strike,tick_size,lot_size,instrument_type,segment,exchange
8962818,35011,BANKNIFTY2112132000PE,"BANKNIFTY",0,2021-01-21,32000,0.05,25,PE,NFO-OPT,NFO
-- as observed till 21st Jan of 2021
instrument_token,exchange_token,tradingsymbol,name,last_price,expiry,strike,tick_size,lot_size,instrument_type,segment,exchange
8962818,35011,BANKNIFTY2131028200PE,"BANKNIFTY",0,2021-03-10,28200,0.05,25,PE,NFO-OPT,NFO
-- as observed now in 1st week of Feb 2021

I can give a ton of more examples like these.
So are the instrument_tokens re-used by Kite/Zerodha again and again for other instruments ??
I thought they are unique

what's driving me crazy is that even the exhange_token is same for both .. WTH ?

  • rakeshr
    @rahul582
    So are the instrument_tokens re-used by Kite/Zerodha again and again for other instruments ??
    Yes, but it's not by Zerodha but by an exchange. The exchange re-uses an exchange token when an instrument expires. So, we recommend users to fetch full instrument file daily once on trading day. Go through this thread to know more about this.
  • sujith
    If you are storing data then I would suggest using tradingsymbol with the exchange as the key and not instrument tokens.
Sign In or Register to comment.