Skip to content

alphasecio/streamlit-yfinance

Repository files navigation

streamlit-yfinance

This is a simple Streamlit web app that fetches and displays real-time and historical stock data using the Yahoo Finance API.

✨ Features

  • Fetch detailed stock ticker information (sector, industry, market cap, enterprise value, employees)
  • Plot interactive historical price charts (1D, 5D, 1M, 6M, YTD, 1Y, 5Y)
  • Display key price metrics (current price, day high/low, 52-week high/low)
  • Show key business metrics (EPS, P/E, PEG, dividend rate & yield, recommendation)
  • Show earnings moves for last 12 quarters
  • Responsive design with data tables and interactive charts
  • No API key required—uses Yahoo Finance via yfinance

streamlit-yfinance

⏩ Quick Start

  1. Clone this repo.
  git clone https://github.com/alphasecio/streamlit-yfinance.git
  cd streamlit-yfinance
  1. Install dependencies.
  pip install -r requirements.txt
  1. Run the app.
  streamlit run streamlit_app.py

🚀 Deploying to Railway

For a step-by-step guide to deploying on Streamlit, see this post. To deploy on Railway, click the button below.

Deploy on Railway

About

A Streamlit app for simple financial analysis using YFinance API.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors