Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Stock Forecast Application

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.

Technologies Used

FastAPI React TypeScript Vite yfinance pandas Axios Recharts date-fns ESLint Uvicorn

Features

  • 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.

Project Structure

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

Getting Started

Backend (FastAPI)

  1. Install Python dependencies:

    cd backend
    pip install -r requirements.txt
  2. Run the FastAPI server:

    uvicorn main:app --reload --port 8000

    The API will be available at http://localhost:8000.

Frontend (React + Vite)

  1. Install Node.js dependencies:

    cd frontend
    npm install
  2. Start the development server:

    npm run dev

    The app will be available at http://localhost:5173.

API Endpoints

  • 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.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages