Downloading and analyzing financial data, including indices, stocks, bonds, and mutual funds, from India, that is Bharat.
Project description
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.
BharatFinTrack focuses on open-source financial data, with an initial emphasis on analyzing NSE equity indices. 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 goal of BharatFinTrack is 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 Indices
- Provides access to detailed information about NSE equity indices.
- Enables downloading and updating daily (
TRI) data for all NSE equity indices. - Fetches closing values for both
Price(excluding dividend reinvestment) andTRIfor all NSE equity indices.
Compound Annual Growth Rate (CAGR)
- Calculates CAGR for both
PriceandTRIsince the inception of all NSE equity indices. - Compare CAGR (%) between
PriceandTRI. - Sorts NSE equity indices by CAGR (%) values.
- Sorts NSE equity indices by CAGR (%) within each category.
Systematic Investment Plan (SIP)
- Computes the year-wise SIP return for a fixed monthly contribution to a specified NSE equity
TRIindex. - Calculates the closing summary of an SIP with a fixed monthly contribution to a specified NSE equity
TRIindex, starting from a given date. - Compares the growth of a monthly SIP investment across multiple NSE equity
TRIindices over the years. - 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 NSE equity indices’ closing values with descending CAGR (%) since inception, both overall and by index category.
- Shows bar graphs of top-performing NSE equity 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 NSE equity
TRIindex 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
TRIindices over the years.
Example Insights
Using BharatFinTrack, you can quickly gain insights into the performance of NSE equity indices. For instance, the following bar plot highlights the top five NSE 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.
In this graph, the NIFTY MIDCAP150 MOMENTUM 50 stands out as one of the best-performing NSE equity TRI indices in terms of long-term CAGR. The next graph illustrates the year-wise investments and returns, shown as investment multiples (X) and XIRR (%), for a monthly SIP of 1,000 Rupees in a passive fund tracking the TRI data of NIFTY MIDCAP150 MOMENTUM 50.
Additionally, the following plot compares the growth multiples (X) of a monthly SIP investment across TRI indices, including popular indices such as NIFTY 50 and NIFTY 500, as well as several other top-performing NSE equity indices over the years.
Easy Installation
To install, use pip:
pip install BharatFinTrack
Quickstart
A brief example of how to start:
>>> 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.
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.
Toolkit
| Status | Description |
|---|---|
| PyPI | |
| GitHub | |
| Codecov | |
| Read the Docs | |
| PePy | |
| License |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bharatfintrack-0.1.9.tar.gz.
File metadata
- Download URL: bharatfintrack-0.1.9.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96903299a9b646cae6c8065e5668b413a7cb9d4d783e173524273c1df7cafaae
|
|
| MD5 |
55b461be5831fd709710eb4bcdfb7785
|
|
| BLAKE2b-256 |
237a801d351457f7a9d8ef02dd257e2129bde4726b0cf23902949c5a3fad3f3c
|
File details
Details for the file BharatFinTrack-0.1.9-py3-none-any.whl.
File metadata
- Download URL: BharatFinTrack-0.1.9-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b1522ca92c6c9b4282715af9d0ceedf5fa706052a7feb6cfc1692437c5857a3
|
|
| MD5 |
e9563091131b763c1911cfa09c576c9e
|
|
| BLAKE2b-256 |
9ae9f3ea3ece03317c1a15df973a4b5913c83af9f85b8d87467aabcbb400ffe6
|