Hey Yash Roongta, Nice article with the needed details, kudos man.
As far as I checked ur articles, mentioned all about to fetch the EOD data, Is there any way to fetch the data for the particular date / week with the duration of minute / hour?
After downloading few files (17) get a timeout error or ConnectionError: HTTPSConnectionPool(host='www.nseindia.com', port=443): Read timed out.
I have tried increasing sleep intervals between requests, still could not workaround...any thoughts or ideas to overcome this issue?
Hi Yash,
Thank you for writing this nice article.
When I try to download the data for the below date range, code is breaking with bad zip file error., any idea how to fix it?

date_range = pd.bdate_range(start='01/03/2014', end = '12/31/2015', freq='C', holidays = holidays_all)
date_range = pd.bdate_range(start='01/01/2010', end = '01/07/2022', freq='C', holidays = holidays()) for dates in date_range: bhavcopy_save(dates,savepath)
#gives me a error saying "BadZipFile: File is not a zip file" Will you please help figure out this??
When I tried to intsall jugaad-data it is showing the error given below. Please help me.
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages)
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'c:\programdata\anaconda3\lib\site-packages\click-8.0.3-py3.10.egg-info\dependency_links.txt'
Consider using the --user option or check the permissions.
WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -lick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution -ick (c:\programdata\anaconda3\lib\site-packages) WARNING: Ignoring invalid distribution - (c:\programdata\anaconda3\lib\site-packages)
Great post! Clear, thorough and very lucid. I actually came across this webpage while browsing a related problem of trying to find some sort of Indian Equity Tickers to their respective Sector and Industry level mapping. Any thoughts or suggestions? TIA
Hi Yash,
Nice article. I am a newbie to python and was trying to download the data for 4/19/2021 and 6/21/2021, but it is just downloading the files for 19 and 20 April and then the code stops working and throws an error. except (ConnectionError, ReadTimeoutError) as e: NameError: name 'ReadTimeoutError' is not defined
With the help of python, users can download End-of-Day stock prices for the Indian national stock exchange. The Exchange Data International National Stock Exchange of India data feed give users with end-of-day unadjusted and planned prices for all stocks traded on the National Stock Exchange of India (NSE), such as delisted stocks. Open, high, low, close prices, traded volume, adjustment reason and factor are added in it. Here unadjusted figures show you the price/volume of a stock on that day, with the adjustments being exchange corrections. All of them can have stock market books for us. On the other hand, adjusted figures show you the price/volume of stock with adjustments because of the corporate actions that are implemented. In case the corporate action impacts the volume of shares of a stock, all previous volume values prior to the ex-date will be multiplied by the inverse of the adjustment element.
Jayesh Shah
Hi Yash,
Just getting started with Python and came to your site via via... Many thanks. Managed to download for 2020 but have got some errors which I will figure out. This popped up and I thought of saying both a hello and offering my thanks.
Are you still in London? My son is studying at SOAS, Economics. Maybe I can get you to meet up and he can buy you the coffee or better a dinner!!
Let me know. He is doing his under-grad so probably much younger to you but you can always inspire.
Jayesh