An interactive stock analysis dashboard that allows users to analyze historical stock data using Yahoo Finance API.
The project provides a modern animated web interface to retrieve and visualize stock price data for selected tickers within a given date range.
- Fetch historical stock data using yFinance
- Supports multiple stock tickers
- Select custom date range
- Modern UI with glassmorphism design
- Animated interface
- Responsive layout
- Built with Flask
- API endpoint to fetch stock data
- JSON-based communication
Stock data table includes:
- Open price
- High price
- Low price
- Close price
- Volume
- Loading animation
- Hover effects
- Dashboard cards
- Statistics counters
Users can enter stock tickers and select a date range.
Example input:
TSLA, AMZN, AMD
| Date | Open | High | Low | Close | Volume |
|---|
Stock-Analysis
β
βββ app.py # Flask backend server
βββ Stock.py # Stock data retrieval logic
β
βββ templates
β βββ index.html # Frontend page
β
βββ static
βββ style.css # Styling and animations
βββ script.js # API requests and DOM updates
git clone https://github.com/Manu080405/Stock-Analysis.git
cd Stock-Analysis
pip install flask yfinance pandas
python app.py
http://127.0.0.1:5000
User enters:
- Stock tickers
- Start date
- End date
Frontend sends request
POST /get_stock
Flask backend calls
yfinance.download()
Data returned as JSON
Frontend renders results in table
{
"tickers": ["TSLA","AMZN"],
"start_date": "2024-01-01",
"end_date": "2024-02-01"
}[
{
"Date": "2024-01-01",
"Open": 230.5,
"High": 235.1,
"Low": 228.4,
"Close": 233.9,
"Volume": 34000000
}
]- π Interactive stock charts
- π Candlestick visualization
- π Moving average indicators
- β‘ Real-time stock price updates
- π€ AI-based stock prediction
- π Portfolio tracking
- Python
- Flask
- yFinance
- HTML
- CSS
- JavaScript
- Chart.js
- Plotly
This project demonstrates:
- REST API development
- BackendβFrontend integration
- Financial data processing
- Interactive UI design
- Flask application architecture