hemenkapadia / getbhavcopy

Free NSE and BSE data downloader
http://www.getbhavcopy.com
112 stars 48 forks source link

Solution found #229

Open dines1312 opened 1 year ago

dines1312 commented 1 year ago

Use this simple code in python, just change the date and month in the 4th, 5th and 7th line. You will have to install jugaad- data library

import pandas as pd from jugaad_data.nse import bhavcopy_save from datetime import date bhavcopy_save(date(2023,3,23),"") bc=pd.read_csv('cm23MAR2023bhav.csv') bcn= bc.loc[bc['SERIES'] == 'EQ'] bcn.to_csv('cm23MAR2023bhav.csv')

madhanji commented 1 year ago

pls provide full set of utility with helpfile

ghkumarchd commented 1 year ago

can you show a sample csv file?

Shivkumar2023 commented 1 year ago

Hi, How is the update working?

pparesh25 commented 1 year ago

pls provide full set of utility with helpfile

This Python program is a perfect alternative to the Getbhavcopy software. It generates the same text file as the one obtained by Getbhavcopy software. The generated file includes symbol, date, open, high, low, close and volume data arranged in columns and date format matches that of Getbhavcopy software. Additionally, all NSE index names have been changed to match the names used in Getbhavcopy's old files. This ensures compatibility with the old database of Amibroker or data import format without requiring any modifications.

https://github.com/pparesh25/Getbhavcopy-alternative