The Stock Analysis application is a Python-based tool that leverages the yahooquery
package to fetch real-time stock data. The frontend is built using Tkinter
, allowing users to analyze financial ratios and view visual representations of key financial statement line items through bar and trend charts.
This application provides users with ratio analysis and visualize data from financial statements in a user-friendly manner. The ratios focused on in this application includes: PE, Return on Equity and Debt to equity ratios. Furthermore, the Profit margin, EPS are also displayed. The application helps you visualize the financial health of a company by displaying charts in the following areas:
- Free Cash Flow (from the Cash Flow statement)
- Cash to Earnings (from the Cash Flow statement)
- Long Term Debt (from the Balance Sheet)
- Net Income (from the Income Statement)
- Total Revenue
Additionally, it provides a trend analysis comparing Cash from Operations and Net Income, supporting cash-based earnings quality analysis.
Note: This application does not constitute investment advice or recommendations for any particular stock or investment strategy.
When a user enters a stock symbol, multiple financial ratios are displayed:
The bar graphs show:
- Free Cash Flow (from the Cash Flow statement)
- Cash to Earnings (from the Cash Flow statement)
- Long Term Debt (from the Balance Sheet)
- Net Income (from the Income Statement)
- Total Revenue
Each graph allows the user to toggle between quarterly and yearly views for better comparison.
- Python 3.x
pipenv
for package management
-
Install
pipenv
if you don't already have it:pip install pipenv
-
Install the required dependencies:
pipenv sync
If you're in a development environment, use:
pipenv sync --dev
-
Run the application:
python userInterface.py
If Tkinter
is not installed on your machine, you can install it by running:
sudo apt-get install python3-tk