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