Download bhavcopy from NSE(National Stock Exchange) from 1 Jan 2020 onwards 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).
# Example: Let's download the Equity bhavcopy for 08 July 2021.
library(nser)
#Download bhavcopy from NSE
report = bhav("08072024")
#Download bhavcopy from BSE
report = bhav("08072024", 'BSE')