A full-stack web application for real-time and historical stock market data visualization and analysis. Built with FastAPI (Python) for the backend and React + TypeScript + Vite for the frontend.
- Historical Stock Data: View price history for major stocks across multiple timeframes (1D, 1W, 1M, 1Y, etc.).
- Intraday Data: Access minute-by-minute trading data for day trading and technical analysis.
- Interactive Charts: Responsive line charts with tooltips, color-coded performance, and timeframe selection.
- Real-Time Updates: Fetch the latest prices and volume data.
- Modern UI: Clean, responsive design for desktop and mobile.
- Robust API: FastAPI backend with CORS support, error handling, and flexible endpoints.
Stock_Forcast/
├── backend/
│ ├── main.py # FastAPI backend API
│ └── requirements.txt # Python dependencies
├── frontend/
│ ├── src/ # React source code
│ ├── public/ # Static assets
│ ├── index.html # HTML entry point
│ ├── package.json # Frontend dependencies & scripts
│ └── ... # Config files (Vite, TypeScript, ESLint)
└── README.md # Project documentation
-
Install Python dependencies:
cd backend pip install -r requirements.txt -
Run the FastAPI server:
uvicorn main:app --reload --port 8000
The API will be available at http://localhost:8000.
-
Install Node.js dependencies:
cd frontend npm install -
Start the development server:
npm run dev
The app will be available at http://localhost:5173.
-
GET /health
Health check endpoint. -
GET /history?ticker=SYMBOL&period=PERIOD
Fetch historical OHLCV data for a stock.ticker: Stock symbol (e.g., AAPL, MSFT)period: 1d, 1w, 1mo, 1y, 2y, 5y, 10y, max
-
GET /intraday?ticker=SYMBOL&interval=INTERVAL
Fetch intraday data with custom intervals.interval: 1m, 2m, 5m, 15m, 30m, 1h, 1d, etc.
MIT License