Unofficial Python Api for NSE India stock exchange
Project description
:moneybag: NseIndiaApi
An unofficial Python API for the NSE India stock exchange.
Python version: >= 3.10
If you ❤️ my work so far, please 🌟 this repo.
:alien: Documentation
https://bennythadikaran.github.io/NseIndiaApi
:fire: Usage
Install with Pip
pip install -U nse
The class accepts a single argument download_folder
, a str
filepath, or a pathlib object
. The folder stores cookie and any downloaded files.
Simple example
from nse import NSE
from pathlib import Path
# Working directory
DIR = Path(__file__).parent
nse = NSE(download_folder=DIR)
status = nse.status()
advDec = nse.advanceDecline()
nse.exit() # close requests session
Using with statement
with NSE(download_folder=DIR) as nse:
status = nse.status()
advDec = nse.advanceDecline()
Samples folder
The src/samples
folder contains sample outputs of various methods. The filenames match the method names. The output has been truncated in some places but demonstrates the overall structure of responses.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nse-0.1.1.post1.tar.gz
(32.0 kB
view hashes)
Built Distribution
nse-0.1.1.post1-py3-none-any.whl
(20.7 kB
view hashes)
Close
Hashes for nse-0.1.1.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31c496d22c5c55c7add5e0235b43fa2b1b863cafae5dae3b010fd247592b7e7 |
|
MD5 | d6def245558f2c6e332f5be5aadb9aa9 |
|
BLAKE2b-256 | 11dd7996ea361ffa1087fadfbeb7a147c4e505d53eed64dbf67e6b655af6ee50 |