Another Bhavcopy Downloader (ABCD)

Here is the gotcha:

Old NSE site is now called >>>> www1.nseindia.com ( all historic bhavcopy paths now ref www1 )
New NSE site is >> beta.nseindia.com

So, the old .r files needs a URL update to get it fixed.

=========================================
;NSE URL format changed from 1st January, 2019 - https://www1.nseindia.com/content/historical/EQUITIES/2019/JAN/cm01JAN2019bhav.csv.zip
;curl -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko "-e https://www1.nseindia.com/products/content/equities/equities/homepage_eq.htm --url https://www1.nseindia.com/content/historical/EQUITIES/2019/JAN/cm03JAN2019bhav.csv.zip -o /ABCD/NSE/cm03JAN2019bhav.csv.zip
;curl -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko "-e https://www1.nseindia.com/products/content/equities/equities/homepage_eq.htm --url https://www1.nseindia.com/content/historical/EQUITIES/2019/JAN/cm03JAN2019bhav.csv.zip -o /ABCD/NSE/cm03JAN2019bhav.csv.zip
NSE_Url: rejoin ["https://www1.nseindia.com/content/historical/EQUITIES/"
; NSE_Url: rejoin ["curl -H " UserAgent " -e https://www1.nseindia.com/products/content/equities/equities/homepage_eq.htm --url " NSE_Url "-o /ABCD/NSE/cm" Sd "bhav.csv.zip " ]
NSE_Url: rejoin ["curl -e https://www1.nseindia.com/products/content/equities/equities/homepage_eq.htm --url " NSE_Url "-o /ABCD/NSE/cm" Sd "bhav.csv.zip " ]
; Current Url of Deliverable -- https://www1.nseindia.com/archives/equities/mto/MTO_ddmmyyyy.DAT
;New url from 1-1-2019 https://www1.nseindia.com/archives/equities/mto/MTO_01012019.DAT
NSED_Url: rejoin ["https://www1.nseindia.com/archives/equities/mto/MTO_" form-date Date "%d%m%Y" ".DAT"] ; format NSE Deliverable data url
NseCur_Url: to-url rejoin ["http://www1.nseindia.com/archives/cd/mkt_act/cd"
; New URL from 1-12-2015 www1.nseindia.com/content/indices/ind_close_all_01122015.csv for All Indices
Indices_Url: to-url join "http://www1.nseindia.com/content/indices/ind_close_all_" [ Date2 ".csv"]
=========================================

Hope this helps!
 
Last edited:

kaly422000

Well-Known Member
days wud not be same in future for retail traders . heard that for intraday ,brokers may want full amount .so no levarage for even cash intra and free downloader stopping download even paid have some problem. so say bye bye
 
ABCD downloader

working for some and not working for some
bahut confusion hai. :banghead:
 

travi

Well-Known Member
NSE website is in upgrade mode for ages now.

Previously also, they had problems with direct downloads and needed referrer URL from reports homepage.

Two "Curl.exe" options are needed, -e for Referrer and -L for follow redirection.

From their original URL with www, it auto-redirects to www1 which should then work fine. will test and update here.
 

kaly422000

Well-Known Member
it is intentional from nse to block free downloader but they always says that they are backing small traders but actually not. realtime data price is high enough and now they ant eod data tobe paid for all . jst have to change main url to www1 but how long that url will last ?.
 

Similar threads