Welcome to NSE’s documentation!¶
NSE is an Unofficial Python Api for NSE India stock exchange
Python version: >= 3.8
All network requests through NSE are rate limited or throttled to 3 requests per second. This allows making large number of requests without overloading the server or getting blocked.
GitHub Source: BennyThadikaran/NseIndiaApi
To install on local machine or PC:¶
$ pip install nse[local]
This will additionally install the requests library.
# server parameter set to False
nse = NSE(download_folder='', server=False)
To install on server like AWS or other cloud services.¶
$ pip install nse[server]
This will additionally install httpx library with http2 support.
# Make sure to set server parameter to True.
nse = NSE(download_folder='', server=True)
Contents¶
- Usage
- API
NSE- General Methods
- Stocks Quotes and Market info
NSE.equityMetaInfo()NSE.shareholding()NSE.quote()NSE.equityQuote()NSE.getDetailedScripData()NSE.gainers()NSE.losers()NSE.advanceDecline()NSE.fetch_index_names()NSE.fetch_equity_historical_data()NSE.fetch_historical_vix_data()NSE.fetch_historical_fno_data()NSE.fetch_historical_index_data()NSE.fetch_fno_underlying()
- List Stocks
- List IPOs
- NSE Circulars
- Download NSE reports
- Corporate Announcements and Actions
- Futures and Options (FnO)
- Acceptable values for nse.listEquityStocksByIndex
- Acceptable values for nse.fetch_historical_index_data