Skip to content

This Python program is a perfect alternative to the Getbhavcopy software. It generates the same text file as the one obtained by Getbhavcopy software

License

Notifications You must be signed in to change notification settings

pparesh25/Getbhavcopy-alternative

Repository files navigation

Getbhavcopy-alternative

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.

Files names
2023-05-19-NSE-EQ.txt
2023-05-18-NSE-EQ.txt

Eq-data
20MICRONS,20230519,83.5,84.9,82.35,83.55,100156
21STCENMGM,20230519,18.0,18.6,18.0,18.5,3918

Indexes-data
NSENIFTY,20230519,18186.15,18218.1,18060.4,18203.4,260898407
NIFTYJUNIOR,20230519,40453.4,40630.5,40090.25,40546.15,237559580

Watch this Video

if you dont know how to use py script

https://youtu.be/DmF2Ke0qS-Q

Download NSE Futures EOD

Use NSE_EOD_FO.zip for update until 04jul2023
After that use >>> nse_fo.py <<< to download data from NSE
If you want to retain the 'OPEN_INT' column for open interest data, please comment out line 156 in the script.

My recommendation

The Getbhavcopy software did not download all indexes. if you want to download and update all NSE indexes.
Use the Indexes Eod data from the folder "NSE index with the original name up to 2023-06-19" and update the database until 2023-06-19. Then use the Python script named "NSE Index only with original index name.py" to update the data for your required date.
Finally Use the Python script "Getbhavcopy-Eq-with original Indexes name.py" to regularly update your database.

The benefit of downloading data using the "Getbhavcopy-Eq-with original Indexes name.py" script is that it will automatically add any new indexes introduced by NSE.

For indexes

If you want to download bhavcopy with NSE original indexes name use this py script

Getbhavcopy-Eq-with original Indexes name .py

If you want to download only indexes with NSE original indexes name use this py script

NSE Index only with orignal index name.py

If you want to download only indexes with old Getbhavcopy indexes name use this py script

NSE index only with old getbhavcopy name .py

Historical indexes data

Use historical eod data from folder

NSE index with original name up to 2023-06-19

Weekend

Added Weekend_Getbhavcopy-Eq-with original Indexes name.py file to download data in weekend.
But my recommendation is to use this to download data only on weekends when the market is open.

Your generous contribution will help and allow me to allocate more time

If you find my work valuable and want to contribute its growth.

please consider making a donation.

My UPI ID: p.paresh25@oksbi

About

This Python program is a perfect alternative to the Getbhavcopy software. It generates the same text file as the one obtained by Getbhavcopy software

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages