From 1c72d4f00946c9f8570c24c25fcad539e0be06dd Mon Sep 17 00:00:00 2001 From: Nikhil <151616268+buzzvolt@users.noreply.github.com> Date: Sun, 14 Dec 2025 12:54:15 +0530 Subject: [PATCH] Update equity_history_virgin URL to keep up with NSE nse folks have updated their api as usual without any news or announcement. this is to keep up with them --- nsepython/rahu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nsepython/rahu.py b/nsepython/rahu.py index 3de33782..029e070a 100644 --- a/nsepython/rahu.py +++ b/nsepython/rahu.py @@ -575,8 +575,9 @@ def black_scholes_dexter(S0,X,t,σ="",r=10,q=0.0,td=365): def equity_history_virgin(symbol,series,start_date,end_date): #url="https://www.nseindia.com/api/historical/cm/equity?symbol="+symbol+"&series=[%22"+series+"%22]&from="+str(start_date)+"&to="+str(end_date)+"" - url = 'https://www.nseindia.com/api/historical/cm/equity?symbol=' + symbol + '&series=["' + series + '"]&from=' + start_date + '&to=' + end_date - + #url = 'https://www.nseindia.com/api/historical/cm/equity?symbol=' + symbol + '&series=["' + series + '"]&from=' + start_date + '&to=' + end_date + url = 'https://www.nseindia.com/api/historicalOR/generateSecurityWiseHistoricalData?symbol=' + symbol + '&type=priceVolumeDeliverable' + '&series=' + series + '&from=' + start_date + '&to=' + end_date + payload = nsefetch(url) return pd.DataFrame.from_records(payload["data"])