get Historical data by stock name instead of instrument code

Rekha
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?
Tagged:
  • rjamitsharma
    Just use loop in csv and get their instrument code either from all instrument or just one by one
  • rjamitsharma
    rjamitsharma edited April 11
    There is no direct way I believe
  • rakeshr
    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.
  • Froggly
    Check out froggly.io for turnkey, historical market data!
Sign In or Register to comment.