NSEDownload

Python Library to get historical stocks data on NSE

Stars
149
Committers
3

NSEDownload

A Python Library to download publicly available data on the NSE website for stocks as pandas dataframe. For a detailed usage : Documentation

Installation

git clone https://github.com/NSEDownload/NSEDownload
pip3 install NSEDownload/dist/*

Usage

from NSEDownload import stocks

# Gets data without adjustment for events
df = stocks.get_data(stock_symbol="RELIANCE", start_date='15-9-2021', end_date='1-10-2021')

Sample Output as a pandas dataframe :

Tips & Tricks

  1. You might run into access issues due to requests per second exceeding the permissible threshold. Add a delay of 5-10 seconds between multiple symbols to resolve the issue. (Discussion)

Change Log

  1. Removed indices, returns, and adjusted stocks.
  2. Made changes to use the new NSE site and cookies.

Contributing

Your feedback matters! If you come across any bugs or issues, don't hesitate to raise them. Feel free to share your ideas for exciting new features

Buy me a coffee

If you've found my work helpful and appreciate the effort, consider supporting me with a coffee! Your contribution goes a long way!

Badges
Extracted from project README
Bump Up version
Related Projects