<p align="left">
<a href="https://aeron7.github.io/nsepython/" target="_blank">
<img width="300" src="https://forum.unofficed.com/uploads/default/original/2X/1/146aad29b92adf82059eacba2feca24741c9f859.png" alt="logo">
</a>
</p>
#### NSEPython is a Python library to get publicly available data on the current [NSEIndia](https://nseindia.com) and [NIFTY Indices](https://www.niftyindices.com/) site by communicating with their REST APIs.
<p align="left">
<a href="https://unofficed.com/nse-python/documentation/" target="_blank">
<img width="200" src="https://forum.unofficed.com/uploads/default/original/2X/6/6b62554e8dc05701dab74b41e681e8b361e0f37f.png" alt="logo">
</a>
</p>
## Support and Beta Functions
- If you have other doubts or want to check out the beta functions, visit the [NSEPython Discussions](https://forum.unofficed.com/c/programming/nse-python-api/) forum.
- If you have feature requests, you can submit them at the [NSEPython Feature Request](https://forum.unofficed.com/t/nsepython-discussion-and-feature-request/665) forum.
## Versions
There are two versions of NSEPython depending on the execution environment. While it's technically feasible to combine these versions into a single program, doing so could introduce latency. Given the financial nature of this program, time is of the essence.
| NSEPython Edition | Compatibility | Tested Environments |
|---------------------------|-----------------------------|-------------------------------|
| [Local Edition](https://github.com/aeron7/nsepython) | Laptops (Windows 9, 10) | Windows 9, Windows 10 |
| [Server Edition](https://github.com/aeron7/nsepythonserver) | Servers (AWS, Google Colab, DigitalOcean) | AWS, Google Colab, DigitalOcean |
## Installation
Use the package manager [pip](https://pypi.org/project/nsepython/) to install nsepython.
#### [NSEPython Local Edition](https://github.com/aeron7/nsepython)
Access NSEPython for laptops, specifically tailored for Windows 9 and Windows 10 compatibility.
```bash
pip install nsepython
```
#### [NSEPython Server Edition](https://github.com/aeron7/nsepythonserver)
Leverage NSEPython designed for server environments, seamlessly functioning on AWS, Google Colab, and DigitalOcean.
```bash
pip install nsepythonserver
```
## Cross Library Migration
All the functions from the two renowned packages, NsepY and NSETools, have been migrated here with the same function names. Both of these packages had been left unmaintained for a considerable period.
## Advanced Usecases
### Mastering AlgoTrading: A Beginner's Guide using NSEPython
- [Candlestick Charts in Python with NSEPython and Plotly](https://unofficed.com/courses/mastering-algotrading-beginners-guide-nsepython/lessons/candlestick-charts-python/)
- [Calculate any Option Greek using Black Scholes Formula in Python](https://unofficed.com/black-scholes-formula-in-python/)
- [How to find the beta of Indian stocks using Python?](https://unofficed.com/how-to-find-the-beta-of-indian-stocks-using-python/)
- [How to get Historical PE, PB and Dividend Ratio of any index using Python](https://unofficed.com/nse-python/documentation/nsepy/#index_pe_pb_div)
### Designing an Index Fund From Scratch in Indian Share Market
- [Building An Market-Weight Adjusted N50 Index Fund – Part I](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/building-an-market-weight-adjusted-n50-index-fund-i/)
- [Building An Market-Weight Adjusted N50 Index Fund – Part II](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/building-an-market-weight-adjusted-n50-index-fund-part-ii/)
- [How to calculate NIFTY 50 value from the stock prices in Python](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/how-to-calculate-nifty-50-value-from-the-stock-prices-in-python/)
### Coding Heatmap and ORB
- [Creating Dynamic Heatmap for Indian Stock Market](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/creating-dynamic-heatmap-for-indian-stock-market/)
- [Coding Heatmap Opening Range Breakout Strategy in Python – Part 1](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/opening-range-breakout-python-part-i/)
- [Coding Heatmap Opening Range Breakout Strategy in Python – Part 2](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/opening-range-breakout-python-part-ii/)
### Markov Chain
- [Stochastic Modeling in Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/stochastic-modeling-in-stock-market/)
- [Application of Markov Chains in Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/application-of-markov-chains-in-stock-market/)
- [Markov Chains in Stock Market Using Python – Getting Transition Matrix​](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/markov-chains-in-stock-market-using-python-getting-transition-matrix/)
- [How to do Random Walk using NSEPython in Indian Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/how-to-do-random-walk-using-nsepython-in-indian-stock-market/)
- [Markov Chain and Linear Algebra – Calculation of Stationary Distribution using Python​](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/markov-chain-and-linear-algebra-calculation-of-stationary-distribution-using-python/)
- [Find the Equilibrium Matrix in Markov Chain using Python in Indian Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/find-the-equilibrium-matrix-in-markov-chain-using-python-in-stock-market/)
## Leverage
In [Leverage](https://www.unofficed.com/leverage/), a plethora of trader-focused tools has been meticulously crafted using NSEPython.
Here's an illustration of a [Sectoral Heatmap](https://unofficed.com/leverage/sectoral-heatmap/), showcasing the extent of complexity that NSEPython API can effortlessly handle.
<p align="left">
<a href="https://www.unofficed.com/leverage/" target="_blank">
<img src="https://unofficed.com/wp-content/uploads/2023/08/Sectoral-Heatmap.png" alt="logo">
</a>
</p>
Raw data
{
"_id": null,
"home_page": "https://github.com/aeron7/nsepythonserver",
"name": "nsepythonserver",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "nseindia, nse, python, sdk, trading, stock markets",
"author": "Aeron7",
"author_email": "dexter@unofficed.com",
"download_url": "https://files.pythonhosted.org/packages/47/b6/d25f7c9c086ebd0ec7e1d52e4927c6d71953930e350beb7442951fa35bbc/nsepythonserver-2.93.tar.gz",
"platform": null,
"description": "<p align=\"left\">\r\n <a href=\"https://aeron7.github.io/nsepython/\" target=\"_blank\">\r\n <img width=\"300\" src=\"https://forum.unofficed.com/uploads/default/original/2X/1/146aad29b92adf82059eacba2feca24741c9f859.png\" alt=\"logo\">\r\n </a>\r\n</p>\r\n\r\n#### NSEPython is a Python library to get publicly available data on the current [NSEIndia](https://nseindia.com) and [NIFTY Indices](https://www.niftyindices.com/) site by communicating with their REST APIs.\r\n\r\n<p align=\"left\">\r\n <a href=\"https://unofficed.com/nse-python/documentation/\" target=\"_blank\">\r\n <img width=\"200\" src=\"https://forum.unofficed.com/uploads/default/original/2X/6/6b62554e8dc05701dab74b41e681e8b361e0f37f.png\" alt=\"logo\">\r\n </a>\r\n</p>\r\n\r\n## Support and Beta Functions\r\n\r\n- If you have other doubts or want to check out the beta functions, visit the [NSEPython Discussions](https://forum.unofficed.com/c/programming/nse-python-api/) forum.\r\n- If you have feature requests, you can submit them at the [NSEPython Feature Request](https://forum.unofficed.com/t/nsepython-discussion-and-feature-request/665) forum.\r\n\r\n## Versions\r\n\r\nThere are two versions of NSEPython depending on the execution environment. While it's technically feasible to combine these versions into a single program, doing so could introduce latency. Given the financial nature of this program, time is of the essence.\r\n\r\n\r\n| NSEPython Edition | Compatibility | Tested Environments |\r\n|---------------------------|-----------------------------|-------------------------------|\r\n| [Local Edition](https://github.com/aeron7/nsepython) | Laptops (Windows 9, 10) | Windows 9, Windows 10 |\r\n| [Server Edition](https://github.com/aeron7/nsepythonserver) | Servers (AWS, Google Colab, DigitalOcean) | AWS, Google Colab, DigitalOcean |\r\n\r\n## Installation\r\n\r\nUse the package manager [pip](https://pypi.org/project/nsepython/) to install nsepython.\r\n\r\n#### [NSEPython Local Edition](https://github.com/aeron7/nsepython)\r\n\r\nAccess NSEPython for laptops, specifically tailored for Windows 9 and Windows 10 compatibility.\r\n\r\n\r\n```bash\r\npip install nsepython\r\n```\r\n\r\n#### [NSEPython Server Edition](https://github.com/aeron7/nsepythonserver)\r\n\r\nLeverage NSEPython designed for server environments, seamlessly functioning on AWS, Google Colab, and DigitalOcean.\r\n\r\n```bash\r\npip install nsepythonserver\r\n```\r\n\r\n## Cross Library Migration\r\nAll the functions from the two renowned packages, NsepY and NSETools, have been migrated here with the same function names. Both of these packages had been left unmaintained for a considerable period.\r\n\r\n## Advanced Usecases\r\n\r\n### Mastering AlgoTrading: A Beginner's Guide using NSEPython\r\n- [Candlestick Charts in Python with NSEPython and Plotly](https://unofficed.com/courses/mastering-algotrading-beginners-guide-nsepython/lessons/candlestick-charts-python/)\r\n- [Calculate any Option Greek using Black Scholes Formula in Python](https://unofficed.com/black-scholes-formula-in-python/)\r\n- [How to find the beta of Indian stocks using Python?](https://unofficed.com/how-to-find-the-beta-of-indian-stocks-using-python/)\r\n- [How to get Historical PE, PB and Dividend Ratio of any index using Python](https://unofficed.com/nse-python/documentation/nsepy/#index_pe_pb_div)\r\n\r\n### Designing an Index Fund From Scratch in Indian Share Market\r\n- [Building An Market-Weight Adjusted N50 Index Fund \u00e2\u20ac\u201c Part I](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/building-an-market-weight-adjusted-n50-index-fund-i/)\r\n- [Building An Market-Weight Adjusted N50 Index Fund \u00e2\u20ac\u201c Part II](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/building-an-market-weight-adjusted-n50-index-fund-part-ii/)\r\n- [How to calculate NIFTY 50 value from the stock prices in Python](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/how-to-calculate-nifty-50-value-from-the-stock-prices-in-python/)\r\n\r\n### Coding Heatmap and ORB\r\n- [Creating Dynamic Heatmap for Indian Stock Market](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/creating-dynamic-heatmap-for-indian-stock-market/)\r\n- [Coding Heatmap Opening Range Breakout Strategy in Python \u00e2\u20ac\u201c Part 1](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/opening-range-breakout-python-part-i/)\r\n- [Coding Heatmap Opening Range Breakout Strategy in Python \u00e2\u20ac\u201c Part 2](https://unofficed.com/courses/designing-an-index-fund-from-scratch-in-indian-share-market/lessons/opening-range-breakout-python-part-ii/)\r\n\r\n### Markov Chain\r\n\r\n- [Stochastic Modeling in Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/stochastic-modeling-in-stock-market/)\r\n- [Application of Markov Chains in Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/application-of-markov-chains-in-stock-market/)\r\n- [Markov Chains in Stock Market Using Python \u00e2\u20ac\u201c Getting Transition Matrix\u00e2\u20ac\u2039](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/markov-chains-in-stock-market-using-python-getting-transition-matrix/)\r\n- [How to do Random Walk using NSEPython in Indian Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/how-to-do-random-walk-using-nsepython-in-indian-stock-market/)\r\n- [Markov Chain and Linear Algebra \u00e2\u20ac\u201c Calculation of Stationary Distribution using Python\u00e2\u20ac\u2039](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/markov-chain-and-linear-algebra-calculation-of-stationary-distribution-using-python/)\r\n- [Find the Equilibrium Matrix in Markov Chain using Python in Indian Stock Market](https://unofficed.com/courses/markov-model-application-of-markov-chain-in-stock-market/lessons/find-the-equilibrium-matrix-in-markov-chain-using-python-in-stock-market/)\r\n\r\n\r\n## Leverage\r\n\r\nIn [Leverage](https://www.unofficed.com/leverage/), a plethora of trader-focused tools has been meticulously crafted using NSEPython.\r\n\r\nHere's an illustration of a [Sectoral Heatmap](https://unofficed.com/leverage/sectoral-heatmap/), showcasing the extent of complexity that NSEPython API can effortlessly handle.\r\n\r\n<p align=\"left\">\r\n <a href=\"https://www.unofficed.com/leverage/\" target=\"_blank\">\r\n <img src=\"https://unofficed.com/wp-content/uploads/2023/08/Sectoral-Heatmap.png\" alt=\"logo\">\r\n </a>\r\n</p>\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Python library for NSE India APIs",
"version": "2.93",
"project_urls": {
"Homepage": "https://github.com/aeron7/nsepythonserver"
},
"split_keywords": [
"nseindia",
" nse",
" python",
" sdk",
" trading",
" stock markets"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2e8b8e2256fb757257ffb6c83f4bdd9b0719fce2f0c559cc696b795abac583aa",
"md5": "a9467942336e68268e0bbff3068969fa",
"sha256": "96a921768fcf56f4378c73c2b28f8328c271899a5aec183edf4e1666d701fb67"
},
"downloads": -1,
"filename": "nsepythonserver-2.93-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a9467942336e68268e0bbff3068969fa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 25519,
"upload_time": "2024-07-14T22:49:36",
"upload_time_iso_8601": "2024-07-14T22:49:36.710965Z",
"url": "https://files.pythonhosted.org/packages/2e/8b/8e2256fb757257ffb6c83f4bdd9b0719fce2f0c559cc696b795abac583aa/nsepythonserver-2.93-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "47b6d25f7c9c086ebd0ec7e1d52e4927c6d71953930e350beb7442951fa35bbc",
"md5": "dbdcfb6b54b007d92865f099ba7eb810",
"sha256": "a111af0980a745a8e31e30bbfbd41d1fc33e58d03688100dd65a4acee7f50815"
},
"downloads": -1,
"filename": "nsepythonserver-2.93.tar.gz",
"has_sig": false,
"md5_digest": "dbdcfb6b54b007d92865f099ba7eb810",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27620,
"upload_time": "2024-07-14T22:49:39",
"upload_time_iso_8601": "2024-07-14T22:49:39.822823Z",
"url": "https://files.pythonhosted.org/packages/47/b6/d25f7c9c086ebd0ec7e1d52e4927c6d71953930e350beb7442951fa35bbc/nsepythonserver-2.93.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-14 22:49:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aeron7",
"github_project": "nsepythonserver",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "nsepythonserver"
}