Finding instrument tokens for delisted stocks

srp201201051
Hi team,

I understand that zerodha publishes the instruments master file everyday, and the clients are supposed to cache it. But, we have not cached it unfortunately, and there is no way to fetch them from anywhere. Is it possible to know how to find instrument tokens for delisted stocks? We also understand that the tokens might be reused, but we would still like to use them to fetch historical data in case they are not. This is to avoid survivorship bias in backtesting.

Thanks!
  • rakeshr
    Is it possible to know how to find instrument tokens for delisted stocks?
    No, we don't have a historical instruments file, to backtrack for this.
  • cnavani
    Hello Rakesh. even if you have historical instruments tokens, it is not allowing to pull data from historical API. So for example, Reliance Capital. It has instrument token 737793. But not able to pull historical prices for this for 1-JAN-21 to 31-JAN-21. Error is "invalid token".

    So even if you have historical token, historical API only gives data for active securities. If you enhance it to accept trading symbol instead of instrument token and allow retrieval of delisted stocks, it will greaty enhance value for this API. Please consider enhancing the functionality. Thanks.
Sign In or Register to comment.