Download bhavcopy from NSE(National Stock Exchange) and BSE(Bombay Stock Exchange).
To download historical bhavcopy just mention the date in numeric format(Date, Month, Year). Note that date should be mentioned in quotation mark “” (inverted comma).
The function tries to download bhavcopy from two sources i.e., Old (https://www1.nseindia.com/products/content/equities/equities/archieve_eq.htm) and New (https://www.nseindia.com/all-reports) websites of NSE.
# Example: Let's download the Equity bhavcopy for 1 July 2021.
library(nser)
#Download bhavcopy from NSE
report = bhav("01072021")
#Download bhavcopy from BSE
report = bhav("01072021", 'BSE')