I am getting error while downloading ticker data from yfinance
There is nothing wrong with your code.
I attempted it and got an error.
You need to upgrade yfinance 0.2.61 was Released: May 12, 2025.
Python 3.12.x will work with it. However, I am using Python 3.13.3.
Output:
YF.download() has changed argument auto_adjust default to True
[ 0% ]
[*********************100%***********************] 1 of 1 completed
Price Close High Low Open Volume
Ticker SBIN.NS SBIN.NS SBIN.NS SBIN.NS SBIN.NS
Date
2025-05-20 785.650024 799.400024 783.799988 798.150024 11324667
2025-05-21 787.099976 791.000000 779.099976 787.000000 8206040
2025-05-22 785.250000 788.200012 780.299988 788.000000 7355826
2025-05-23 790.500000 794.950012 786.200012 787.900024 5534158
2025-05-26 794.400024 797.549988 789.200012 792.000000 4960509