An open API service indexing awesome lists of open source software.

https://github.com/alphasecio/streamlit-yfinance

A Streamlit app for simple financial analysis using YFinance API.
https://github.com/alphasecio/streamlit-yfinance

python stocks streamlit yahoo-finance

Last synced: about 1 year ago
JSON representation

A Streamlit app for simple financial analysis using YFinance API.

Awesome Lists containing this project

README

          

# streamlit-yfinance
This is a simple [Streamlit](https://streamlit.io/) 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)
- Responsive design with data tables and interactive charts
- No API key required—uses Yahoo Finance via `yfinance`

![streamlit-yfinance](./streamlit-yfinance.png)

### ⏩ Quick Start
1. Clone this repo.
```bash
git clone https://github.com/alphasecio/streamlit-yfinance.git
cd streamlit-yfinance
```
2. Install dependencies.
```bash
pip install -r requirements.txt
```
3. Run the app.
```bash
streamlit run streamlit_app.py
```

### 🚀 Deploying to Railway
For a step-by-step guide to deploying on Streamlit, see [this](https://alphasec.io/stock-financial-analysis-with-streamlit-and-yfinance-api/) post. To deploy on [Railway](https://railway.app/?referralCode=alphasec), click the button below.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/3D37W6?referralCode=alphasec)