BharatFinTrack


NameBharatFinTrack JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryDownloading and analyzing financial data, including indices, stocks, bonds, and mutual funds, from India, that is Bharat.
upload_time2025-07-27 19:33:57
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords nse index download cagr sip visualization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BharatFinTrack

| <big>Status</big> | <big>Description</big> |
| --- | --- |
| **PyPI**| ![PyPI - Version](https://img.shields.io/pypi/v/BharatFinTrack) ![PyPI - Status](https://img.shields.io/pypi/status/BharatFinTrack) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/BharatFinTrack) ![PyPI - Format](https://img.shields.io/pypi/format/BharatFinTrack) |
| **GitHub** | ![GitHub last commit](https://img.shields.io/github/last-commit/debpal/BharatFinTrack) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/debpal/BharatFinTrack) [![flake8](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml)	[![mypy](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml) [![pytest](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml) ![GitHub Created At](https://img.shields.io/github/created-at/debpal/BharatFinTrack)|
| **Codecov** | [![codecov](https://codecov.io/github/debpal/BharatFinTrack/graph/badge.svg?token=6DIYX8MUTM)](https://codecov.io/github/debpal/BharatFinTrack) |
| **Read** _the_ **Docs** | ![Read the Docs](https://img.shields.io/readthedocs/BharatFinTrack) |
| **PePy** | ![Pepy Total Downloads](https://img.shields.io/pepy/dt/BharatFinTrack)|
| **License** | ![GitHub License](https://img.shields.io/github/license/debpal/BharatFinTrack) |





`BharatFinTrack` is a Python package designed to simplify the process of downloading and analyzing financial data from India. Conceptualized on September 1, 2024, and launched on September 8, 2024, this package is tailored for long-term investors seeking to streamline their financial data workflows. The package focuses on open-source financial data, with an initial emphasis on analyzing [Nifty Equity Indices](https://www.niftyindices.com/). However, it is important to note that the package does not include features for technical indicators or real-time trading. Active development is ongoing, with exciting new features planned for future releases. The package aims to empower users by providing easy access to open-source data, enabling them to make informed financial decisions. Currently, the package offers the following features:


## Nifty Equity Indices
    
* Provides access to detailed information about equity indices.
* Enables downloading and updating daily Total Return Index (`TRI`) data for all equity indices.
* Fetches closing values for both `Price` (excluding dividend reinvestment) and `TRI` for all equity indices.
* Identifies key turning points in consecutive corrections and recoveries over the historical values of an index.


## Compound Annual Growth Rate (CAGR)
    
* Calculates CAGR for both `Price` and `TRI` indices since the inception.
* Compare CAGR (%) between `Price` and `TRI` indices.
* Sorts `Price` and `TRI` indices by CAGR (%) values.
* Sorts `Price` and `TRI` indices by CAGR (%) within each category.
* Compares the year-wise CAGR (%) and growth of a fixed yearly investment across multiple `TRI` indices.

    
## Systematic Investment Plan (SIP)
    
* Computes the year-wise SIP return for a fixed monthly contribution to a specified `TRI` index. 
* Calculates the closing summary of an SIP with a fixed monthly contribution to a specified `TRI` index, starting from a given date.
* Compares the year-wise XIRR (%) and growth of a fixed monthly SIP investment across multiple `TRI` indices.
* Estimates annual SIP performance, including investment amount, closing balance, and cumulative growth over a specified number of years and expected annual return, with options for yearly, quarterly, monthly, or weekly contributions.



## Visualization

* Displays bar graphs of `Price` and `TRI` index closing values with descending CAGR (%) since inception, both overall and by index category.
* Shows bar graphs of top-performing `Price` and `TRI` indices by CAGR (%) since launch, with options to view a specified number of top indices, either overall or within each category.
* Depicts a bar graph of year-wise investments and returns for a monthly SIP of 1,000 Rupees in a specified `TRI` index since its inception.
* Provides a return comparison between a specified index and government bonds for a monthly SIP of 1,000 Rupees over the years.
* Illustrates a line plot comparing the growth of a monthly SIP investment across multiple NSE equity `TRI` indices over the years.




# Example Insights
Using `BharatFinTrack`, you can quickly gain insights into the performance of equity indices. For instance, the following bar plot highlights the top five equity indices by `TRI` CAGR (%) within each category since their respective launches. This snapshot provides a powerful visual overview of long-term performance trends of investment multiples (X) across different index categories over the years. Because performance data updates daily with each trading session, you can replicate and customize this analysis to generate up-to-date insights tailored to your research needs or investment strategies.

![Category-wise Top Five TRI CAGR(%) of NSE Equity Indices](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/tri_top_cagr_by_category.png)

In the above graph, the `NIFTY MIDCAP150 MOMENTUM 50` emerges as one of the best-performing NSE equity `TRI` indices in terms of long-term CAGR. The next graph illustrates a comparison of year-wise investments and returns for a monthly SIP of 1,000 Rupees between a government bond and a passive fund tracking the `TRI` data of `NIFTY MIDCAP150 MOMENTUM 50`.

![Year-wise SIP comparison between Government Bond and NIFTY_MIDCAP150_MOMENTUM_50](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/sip_gsec_vs_NIFTY_MIDCAP150_MOMENTUM_50.png)

Additionally, the following plot compares the growth multiples (X) of a monthly SIP investment across `TRI` indices, including the popular index `NIFTY 50` and other top-performing NSE equity indices over the years.


![Year-wise SIP growth comparison across multiple indices](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/compare_yearwise_sip_growth.png)

## Easy Installation

To install, use pip:

```bash
pip install BharatFinTrack
```

## Quickstart
A brief example of how to start:

```python
>>> import BharatFinTrack
>>> nse_product = BharatFinTrack.NSEProduct()
>>> nse_product.equity_index_category
['broad', 'sector', 'thematic', 'strategy', 'variant']

# list of all NSE equity indices
>>> nse_product.all_equity_indices
['NIFTY 100',
 'NIFTY 200',
 'NIFTY 50',
 ...]
```

## Documentation
For detailed information, see the [documentation](https://bharatfintrack.readthedocs.io/en/latest/).

## Support

If this project has been helpful and you'd like to contribute to its development, consider sponsoring with a coffee! Support will help maintain, improve, and expand this open-source project, ensuring continued valuable tools for the community.


[![Buy Me a Coffee](https://img.shields.io/badge/☕_Buy_me_a_coffee-FFDD00?style=for-the-badge)](https://www.buymeacoffee.com/debasish_pal)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "BharatFinTrack",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "NSE Index, Download, CAGR, SIP, Visualization",
    "author": null,
    "author_email": "Debasish Pal <bestdebasish@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4b/b5/0b5ccaf4ae856625937a4d5035438c92f4a1db93e927163b786b58243fab/bharatfintrack-0.2.2.tar.gz",
    "platform": null,
    "description": "# BharatFinTrack\r\n\r\n| <big>Status</big> | <big>Description</big> |\r\n| --- | --- |\r\n| **PyPI**| ![PyPI - Version](https://img.shields.io/pypi/v/BharatFinTrack) ![PyPI - Status](https://img.shields.io/pypi/status/BharatFinTrack) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/BharatFinTrack) ![PyPI - Format](https://img.shields.io/pypi/format/BharatFinTrack) |\r\n| **GitHub** | ![GitHub last commit](https://img.shields.io/github/last-commit/debpal/BharatFinTrack) ![GitHub commit activity](https://img.shields.io/github/commit-activity/t/debpal/BharatFinTrack) [![flake8](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/linting.yml)\t[![mypy](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/typing.yml) [![pytest](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml/badge.svg)](https://github.com/debpal/BharatFinTrack/actions/workflows/testing.yml) ![GitHub Created At](https://img.shields.io/github/created-at/debpal/BharatFinTrack)|\r\n| **Codecov** | [![codecov](https://codecov.io/github/debpal/BharatFinTrack/graph/badge.svg?token=6DIYX8MUTM)](https://codecov.io/github/debpal/BharatFinTrack) |\r\n| **Read** _the_ **Docs** | ![Read the Docs](https://img.shields.io/readthedocs/BharatFinTrack) |\r\n| **PePy** | ![Pepy Total Downloads](https://img.shields.io/pepy/dt/BharatFinTrack)|\r\n| **License** | ![GitHub License](https://img.shields.io/github/license/debpal/BharatFinTrack) |\r\n\r\n\r\n\r\n\r\n\r\n`BharatFinTrack` is a Python package designed to simplify the process of downloading and analyzing financial data from India. Conceptualized on September 1, 2024, and launched on September 8, 2024, this package is tailored for long-term investors seeking to streamline their financial data workflows. The package focuses on open-source financial data, with an initial emphasis on analyzing [Nifty Equity Indices](https://www.niftyindices.com/). However, it is important to note that the package does not include features for technical indicators or real-time trading. Active development is ongoing, with exciting new features planned for future releases. The package aims to empower users by providing easy access to open-source data, enabling them to make informed financial decisions. Currently, the package offers the following features:\r\n\r\n\r\n## Nifty Equity Indices\r\n    \r\n* Provides access to detailed information about equity indices.\r\n* Enables downloading and updating daily Total Return Index (`TRI`) data for all equity indices.\r\n* Fetches closing values for both `Price` (excluding dividend reinvestment) and `TRI` for all equity indices.\r\n* Identifies key turning points in consecutive corrections and recoveries over the historical values of an index.\r\n\r\n\r\n## Compound Annual Growth Rate (CAGR)\r\n    \r\n* Calculates CAGR for both `Price` and `TRI` indices since the inception.\r\n* Compare CAGR (%) between `Price` and `TRI` indices.\r\n* Sorts `Price` and `TRI` indices by CAGR (%) values.\r\n* Sorts `Price` and `TRI` indices by CAGR (%) within each category.\r\n* Compares the year-wise CAGR (%) and growth of a fixed yearly investment across multiple `TRI` indices.\r\n\r\n    \r\n## Systematic Investment Plan (SIP)\r\n    \r\n* Computes the year-wise SIP return for a fixed monthly contribution to a specified `TRI` index. \r\n* Calculates the closing summary of an SIP with a fixed monthly contribution to a specified `TRI` index, starting from a given date.\r\n* Compares the year-wise XIRR (%) and growth of a fixed monthly SIP investment across multiple `TRI` indices.\r\n* Estimates annual SIP performance, including investment amount, closing balance, and cumulative growth over a specified number of years and expected annual return, with options for yearly, quarterly, monthly, or weekly contributions.\r\n\r\n\r\n\r\n## Visualization\r\n\r\n* Displays bar graphs of `Price` and `TRI` index closing values with descending CAGR (%) since inception, both overall and by index category.\r\n* Shows bar graphs of top-performing `Price` and `TRI` indices by CAGR (%) since launch, with options to view a specified number of top indices, either overall or within each category.\r\n* Depicts a bar graph of year-wise investments and returns for a monthly SIP of 1,000 Rupees in a specified `TRI` index since its inception.\r\n* Provides a return comparison between a specified index and government bonds for a monthly SIP of 1,000 Rupees over the years.\r\n* Illustrates a line plot comparing the growth of a monthly SIP investment across multiple NSE equity `TRI` indices over the years.\r\n\r\n\r\n\r\n\r\n# Example Insights\r\nUsing `BharatFinTrack`, you can quickly gain insights into the performance of equity indices. For instance, the following bar plot highlights the top five equity indices by `TRI` CAGR (%) within each category since their respective launches. This snapshot provides a powerful visual overview of long-term performance trends of investment multiples (X) across different index categories over the years. Because performance data updates daily with each trading session, you can replicate and customize this analysis to generate up-to-date insights tailored to your research needs or investment strategies.\r\n\r\n![Category-wise Top Five TRI CAGR(%) of NSE Equity Indices](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/tri_top_cagr_by_category.png)\r\n\r\nIn the above graph, the `NIFTY MIDCAP150 MOMENTUM 50` emerges as one of the best-performing NSE equity `TRI` indices in terms of long-term CAGR. The next graph illustrates a comparison of year-wise investments and returns for a monthly SIP of 1,000 Rupees between a government bond and a passive fund tracking the `TRI` data of `NIFTY MIDCAP150 MOMENTUM 50`.\r\n\r\n![Year-wise SIP comparison between Government Bond and NIFTY_MIDCAP150_MOMENTUM_50](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/sip_gsec_vs_NIFTY_MIDCAP150_MOMENTUM_50.png)\r\n\r\nAdditionally, the following plot compares the growth multiples (X) of a monthly SIP investment across `TRI` indices, including the popular index `NIFTY 50` and other top-performing NSE equity indices over the years.\r\n\r\n\r\n![Year-wise SIP growth comparison across multiple indices](https://github.com/debpal/BharatFinTrack/raw/main/docs/_static/compare_yearwise_sip_growth.png)\r\n\r\n## Easy Installation\r\n\r\nTo install, use pip:\r\n\r\n```bash\r\npip install BharatFinTrack\r\n```\r\n\r\n## Quickstart\r\nA brief example of how to start:\r\n\r\n```python\r\n>>> import BharatFinTrack\r\n>>> nse_product = BharatFinTrack.NSEProduct()\r\n>>> nse_product.equity_index_category\r\n['broad', 'sector', 'thematic', 'strategy', 'variant']\r\n\r\n# list of all NSE equity indices\r\n>>> nse_product.all_equity_indices\r\n['NIFTY 100',\r\n 'NIFTY 200',\r\n 'NIFTY 50',\r\n ...]\r\n```\r\n\r\n## Documentation\r\nFor detailed information, see the [documentation](https://bharatfintrack.readthedocs.io/en/latest/).\r\n\r\n## Support\r\n\r\nIf this project has been helpful and you'd like to contribute to its development, consider sponsoring with a coffee! Support will help maintain, improve, and expand this open-source project, ensuring continued valuable tools for the community.\r\n\r\n\r\n[![Buy Me a Coffee](https://img.shields.io/badge/\u2615_Buy_me_a_coffee-FFDD00?style=for-the-badge)](https://www.buymeacoffee.com/debasish_pal)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Downloading and analyzing financial data, including indices, stocks, bonds, and mutual funds, from India, that is Bharat.",
    "version": "0.2.2",
    "project_urls": {
        "Documentation": "https://bharatfintrack.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/debpal/BharatFinTrack"
    },
    "split_keywords": [
        "nse index",
        " download",
        " cagr",
        " sip",
        " visualization"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1593b2e8ed839fb029d924333789a5822f963d37992d5291d2b683fa36d9cbfd",
                "md5": "00ef1e54e3e1daea842757b61f6ce4ae",
                "sha256": "8086e814f846f00172a68b32bc0cafbb914593b0eea1c141c6b7813966bbe5a9"
            },
            "downloads": -1,
            "filename": "bharatfintrack-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00ef1e54e3e1daea842757b61f6ce4ae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 43593,
            "upload_time": "2025-07-27T19:33:56",
            "upload_time_iso_8601": "2025-07-27T19:33:56.508910Z",
            "url": "https://files.pythonhosted.org/packages/15/93/b2e8ed839fb029d924333789a5822f963d37992d5291d2b683fa36d9cbfd/bharatfintrack-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4bb50b5ccaf4ae856625937a4d5035438c92f4a1db93e927163b786b58243fab",
                "md5": "d910ec00fb0899af01898907e5339d81",
                "sha256": "7d6fb29d661a1eeeae4adbb6a7c522690e033e320fd9f1a9ebe2e49ed7f795bc"
            },
            "downloads": -1,
            "filename": "bharatfintrack-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d910ec00fb0899af01898907e5339d81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 45533,
            "upload_time": "2025-07-27T19:33:57",
            "upload_time_iso_8601": "2025-07-27T19:33:57.815466Z",
            "url": "https://files.pythonhosted.org/packages/4b/b5/0b5ccaf4ae856625937a4d5035438c92f4a1db93e927163b786b58243fab/bharatfintrack-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-27 19:33:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "debpal",
    "github_project": "BharatFinTrack",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "bharatfintrack"
}
        
Elapsed time: 1.26199s