BennyThadikaran / eod2

A fully automated script to download and update NSE EOD Historical stock, index and delivery data with added features
GNU General Public License v3.0
57 stars 18 forks source link

Indices Data #27

Closed cotton1234 closed 1 year ago

cotton1234 commented 1 year ago

Hello Benny,

I was looking at the eod daily folder and could find only some indices and not all the indices.

image

where as in the file ind_close_all_01082023.csv there are lot of indices.

image

Can i define somewhere what all indices i need to sync.

Also i am planning to use the same logic for downloading stock data from BSE as some stocks are only listed on it.

Thanks Saurabh

BennyThadikaran commented 1 year ago

In the eod2_data folder there is a sector_watchlist.csv file. It has the entire list of Indices that are synced. If you need additional indices you can add them to this file.

If you do edit this file, take a backup of the changes as any pull request will overwrite your edits.

Also you wont have historic data. That functionality is not included. It will be synced on a daily basis.

BennyThadikaran commented 1 year ago

If you have my latest code, you can create a user.json in the defs folder. I can update the code so you can define a list of additional indices in user.json. That way your changes wont get overwritten. If you can keep this issue open i will update the code and get back by tomorrow.

cotton1234 commented 1 year ago

Sure Benny will sync the new one once you update.

Thanks Saurabh

BennyThadikaran commented 1 year ago

Create a user.json in defs folder like below:

{
  "ADDITIONAL_INDICES": ["Nifty 200"]
}

Indices names are case sensitive, check the nse indices report for correct casing. You will get a key error is casing is incorrect.

You can run py init.py c to print configuration. If everything is correct, you will see the ADDITIONAL_INDICES with the index names printed as a list.

EOD2 | Version: 3.0.1
AMIBROKER: False
AMI_UPDATE_DAYS: 365
PLOT_DAYS: 180
PLOT_AVG_DAYS: 60
LOOKUP_AVG_DAYS: 60
LOOKUP_DAYS: 15
WATCH: watchlist.csv
IT: it.csv
BANK: bank.csv
ADDITIONAL_INDICES: ['Nifty 200']
cotton1234 commented 1 year ago

Create a user.json in defs folder like below:

{
  "ADDITIONAL_INDICES": ["Nifty 200"]
}

Indices names are case sensitive, check the nse indices report for correct casing. You will get a key error is casing is incorrect.

You can run py init.py c to print configuration. If everything is correct, you will see the ADDITIONAL_INDICES with the index names printed as a list.

EOD2 | Version: 3.0.1
AMIBROKER: False
AMI_UPDATE_DAYS: 365
PLOT_DAYS: 180
PLOT_AVG_DAYS: 60
LOOKUP_AVG_DAYS: 60
LOOKUP_DAYS: 15
WATCH: watchlist.csv
IT: it.csv
BANK: bank.csv
ADDITIONAL_INDICES: ['Nifty 200']

Thanks Benny, I was able to pull the same and added some new index which I need to monitor.

Saurabh

BennyThadikaran commented 9 months ago

@cotton1234

Hi Saurabh,

Just wanted to update you, I have added 22 new indices to EOD2 from 2015 onwards. See this discussion

Thought you may find it helpful in relation to this issue.