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.
- Host: GitHub
- URL: https://github.com/alphasecio/streamlit-yfinance
- Owner: alphasecio
- License: mit
- Created: 2023-03-28T03:14:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-03T13:15:55.000Z (about 1 year ago)
- Last Synced: 2025-06-03T23:26:12.549Z (about 1 year ago)
- Topics: python, stocks, streamlit, yahoo-finance
- Language: Python
- Homepage: https://go.alphasec.io/streamlit-apps
- Size: 426 KB
- Stars: 14
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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`

### ⏩ 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.
[](https://railway.app/new/template/3D37W6?referralCode=alphasec)