swapniljariwala / nsepy

Python Library to get publicly available data on NSE website ie. stock quotes, historical data, live indices
https://nsepy-xyz.web.app
Other
758 stars 377 forks source link

get_history not downloading data post 31/10/2022 #235

Open MSB-ML opened 2 years ago

MSB-ML commented 2 years ago

Hello all,

For me, get_history is not downloading data post 31/10/2022. Has NSE changed the archive address? Has anyone faced this problem? Please let me know.

Thanks

krsna24x7 commented 2 years ago

Same for me,

On investigation, seems nse data is no longer updated on the old site https://www1.nseindia.com/products/content/equities/equities/archieve_eq.htm

Seems to be only available on https://www.nseindia.com/all-reports

Can someone point nsepy to the new site for the downloads?

pranthan commented 2 years ago

Same for me also.. Any workaround?

MSB-ML commented 2 years ago

I tried to look at the source code (though I am a very bad programmer) to find the link where the data is being downloaded from but was not able to find it. If someone is willing to join, I'll try to update the function. Please reply.

MSB-ML commented 2 years ago

Same for me,

On investigation, seems nse data is no longer updated on the old site https://www1.nseindia.com/products/content/equities/equities/archieve_eq.htm

Seems to be only available on https://www.nseindia.com/all-reports

Can someone point nsepy to the new site for the downloads?

Did NSE inform this earlier?? or it could be just delay from their side?

krsna24x7 commented 2 years ago

Change in urls.py from this: url='https://www1.nseindia.com/content/historical/EQUITIES/%s/%s/cm%sbhav.csv.zip') to: url='https://archives.nseindia.com/content/historical/EQUITIES/%s/%s/cm%sbhav.csv.zip)

pranthan commented 2 years ago

It now worked for yesterday's data. I did not change any url.

Umang-Pandya commented 2 years ago

For me it is showing syntax error at exception handling now just by importing the library!

image
UditGupta10 commented 2 years ago

For me it is showing syntax error at exception handling now just by importing the library! image

This seems unrelated. Check the requirements.txt file and verify the versions match with those present in your environment, especially Beautifulsoup.

Umang-Pandya commented 2 years ago

For me it is showing syntax error at exception handling now just by importing the library! image

This seems unrelated. Check the requirements.txt file and verify the versions match with those present in your environment, especially Beautifulsoup.

Ok Re-installed bs4, working but now history is coming till 2022-10-31 as it is

Umang-Pandya commented 2 years ago

ok 2022-11-01 and 2022-11-02 are missing received 2022-11-03!

RajeshSivadasan commented 2 years ago

Same issue here. Not getting History data for NIFTY 17900 CE 17th Nov expiry get_history(symbol='NIFTY', start=date(2022,10,30), end=date(2022,11,3), index=True, option_type='CE', strike_price=17900, expiry_date=date(2022,11,17))