How vsjha18/nsetools works
NSETools is a Python client for retrieving publicly available NSE market data. Users call its stock, index, or derivatives APIs; those methods fetch NSE responses through a session and return parsed results. The repository also includes a historical bhavcopy downloader with date-range handling. The graph preserves the README’s documented API areas and the downloader visible in the tree. Some source excerpts are partial, so unshown implementation links are omitted.
Main entry points: nse.py Stock APIs · ua.py Session fetcher · urls.py NSE endpoints · downloader.py Bhavcopy downloader
Components 11
Market APIs
- Stock APIs
src/nsetools/nse.py - Index APIs
src/nsetools/nse.py - Derivatives API
src/nsetools/nse.py
HTTP transport
- Session fetcher
src/nsetools/ua.py - NSE endpoints
src/nsetools/urls.py
Shared support
- Exchange interface
src/nsetools/bases.py - Data conversions
src/nsetools/utils.py
Historical downloads
- Date handling
src/nsetools/datemgr.py - Bhavcopy downloader
src/nsetools/downloader.py
Other components
- Python user
- NSE website
Connections 16
- Python user → Stock APIs: calls
README.md - Python user → Index APIs: calls
README.md - Python user → Derivatives API: calls
README.md - Stock APIs → Session fetcher: fetches through
src/nsetools/nse.py - Index APIs → Session fetcher: fetches through
src/nsetools/nse.py - Derivatives API → Session fetcher: fetches through
src/nsetools/nse.py - Session fetcher → NSE endpoints: uses home URL
src/nsetools/ua.py - Session fetcher → NSE website: requests data from
src/nsetools/ua.py - Stock APIs → NSE endpoints: selects endpoints
src/nsetools/nse.py - Index APIs → NSE endpoints: selects endpoints
src/nsetools/nse.py - Derivatives API → NSE endpoints: selects endpoint
src/nsetools/nse.py - Stock APIs → Data conversions: converts responses
src/nsetools/nse.py - Index APIs → Data conversions: converts responses
src/nsetools/nse.py - Derivatives API → Exchange interface: implements interface
src/nsetools/nse.py - Bhavcopy downloader → Date handling: gets date ranges
src/nsetools/downloader.py - Bhavcopy downloader → Stock APIs: creates NSE client
src/nsetools/downloader.py