Is there any way to get the historical data by the name of the company instead of the instrument code? I have a csv that contains list of stocks. I wanted to use it in python script directly to get the historical data. But unable to do so. Can anyone help?
I have a csv that contains list of stocks. I wanted to use it in python script directly to get the historical data. But unable to do so.
As @rjamitsharma suggested, there is no direct way. You will have to extract instrument_token from complete instrument list and map with required symbol. And then use the same instrument_token to fetch Historical data.
instrument_token
from complete instrument list and map with required symbol. And then use the sameinstrument_token
to fetch Historical data.