Skip to the content.

Stock Analysis πŸ“ˆ

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.

Purpose

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:

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.


Demo

When a user enters a stock symbol, multiple financial ratios are displayed: StockAnalysisHomePage

The bar graphs show:

Each graph allows the user to toggle between quarterly and yearly views for better comparison. Charts


Installation and Usage

Prerequisites

Installation Steps

  1. Install pipenv if you don’t already have it:
    pip install pipenv
    
  2. Install the required dependencies:
    pipenv sync
    

    If you’re in a development environment, use:

    pipenv sync --dev
    
  3. Run the application:
    python userInterface.py
    

Optional

If Tkinter is not installed on your machine, you can install it by running:

sudo apt-get install python3-tk