You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
equity_history() fails with KeyError: 'data' - NSE API endpoint returns 404 #74
The equity_history() function in nsepython fails because NSE has removed their free historical equity data API endpoint. The endpoint /api/historical/cm/equity now returns HTTP 404 (Resource not found).
Environment
NSEPython Version: 2.97 (latest)
Python Version: 3.13
Operating System: Windows 11
Date: January 8, 2026
Steps to Reproduce
from nsepython import equity_history
This call fails with KeyError: 'data'
result = equity_history('SBIN', 'EQ', '01-12-2025', '08-12-2025')
Actual Behavior
Traceback (most recent call last):
File "rahu.py", line 580, in equity_history_virgin
return pd.DataFrame.from_records(payload["data"])
~~~~~~~^^^^^^^^
KeyError: 'data'
Activity
TEJ2401 commentedon Jan 17, 2026
The API for example as below :
https://www.nseindia.com/api/historical/cm/equity?symbol=INFY&series=[%22EQ%22]&from=01-01-2025&to=31-12-2025.
is no longer valid as it says Resource not found
aeron7 commentedon Mar 7, 2026
Fixed.