Does yfinance work for Indian stocks?

Course Name: Getting Market Data: Stocks, Crypto, News & Fundamental, Section No: 2, Unit No: 1, Unit type: Notebook



I tried the following, it does not work.



import yfinance as yf

tata = yf.download("TATASTEEL", start="2021-01-02")



1 Failed download:

  • TATASTEEL: No data found, symbol may be delisted

     

Hi Srinivas,



Stock symbols in yahoo finance contains ".NS" as suffix. so try using "TATASTEEL.NS"

Hi Srinivas,



To fetch data of Indian stocks from Yahoo! Finance, you need to add .NS after the Stock Ticker.



Example:

import yfinance as yf
tata = yf.download("TATASTEEL.NS", start="2021-01-02")

 

Adding ".NS" used to work till Mid Aug 2021. After that it is not working.

Hi Gautam



I tried the code block in Vibhu's comment. It is working for me. Can you share the error that you are facing while using "yfinance"?