Skip to content

πŸ“ˆ Real-time stock analysis dashboard with ML predictions, anomaly detection, technical indicators & sentiment analysis. Built with React + FastAPI.

Notifications You must be signed in to change notification settings

SiD-array/StockView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ StockView

StockView is a desktop web application for real-time stock market analysis. It combines interactive data visualization, anomaly detection, news sentiment insights, and machine learning–based price predictions into a single dashboard.

πŸš€ Live Deployment:

  • Frontend (Vercel) β†’ View App
  • Backend (Render) β†’ See DEPLOYMENT_COMPLETE_GUIDE.md for deployment instructions

✨ Features

  • Real-time Stock Data β†’ Current price, open, high, low, and volume.

  • Interactive Charts β†’ Zoom/pan with SMA, anomaly highlights, and prediction overlays.

  • Technical Indicators β†’ SMA, RSI, MACD, Bollinger Bands, ATR, and more.

  • Anomaly Detection β†’ Detects unusual price movements via Z-score.

  • Machine Learning Predictions β†’

    • Algorithms: Linear Regression, Random Forest, XGBoost, LightGBM, CNN.
    • Metrics: RΒ², MAE, MSE.
    • Algorithm comparison dashboard.
  • News & Sentiment Analysis β†’ Headlines with Positive/Neutral/Negative labels and sentiment charts.

  • Watchlist β†’ Add/remove stock symbols, synced with Firebase.


πŸ—οΈ Tech Stack

Frontend (React + Vite)

  • React + Hooks for state management
  • Recharts for interactive visualization
  • TailwindCSS for UI styling
  • Firebase (Cloud Firestore) for watchlist persistence

Backend (FastAPI)

  • FastAPI for REST API
  • Yahoo Finance (yfinance) for stock data
  • VADER Sentiment Analyzer for news sentiment
  • ML Models: scikit-learn, XGBoost, LightGBM, TensorFlow (CNN)
  • Technical indicators with ta library

πŸ“‚ Project Structure

StockView/
│── frontend/
β”‚   β”œβ”€β”€ App.jsx        # React app (UI and chart logic)
β”‚   └── ...
β”‚
│── backend/
β”‚   β”œβ”€β”€ main.py        # FastAPI backend with endpoints
β”‚   └── ...
β”‚
│── README.md

πŸ–ΌοΈ Preview

StockView Dashboard Preview

StockView Predictions and Anomalies

StockView Predictions and Anomalies

StockView Predictions and Anomalies

Replace the placeholder images above with actual screenshots of your app for a better showcase.


πŸš€ Deployment

For complete deployment instructions, see DEPLOYMENT_COMPLETE_GUIDE.md

Quick Overview:

  • Backend: Deploy to Render (see guide for details)
  • Frontend: Deploy to Vercel (see guide for details)
  • Firestore: Configure security rules in Firebase Console

βš™οΈ Local Development

Backend (FastAPI)

cd backend
pip install -r requirements.txt
uvicorn main:app --reload

Runs at β†’ http://localhost:8000

Frontend (React + Vite)

cd frontend
npm install
npm run dev

Runs at β†’ http://localhost:5173


πŸ–₯️ Usage

  1. Search for a stock symbol (e.g., AAPL, TSLA).
  2. Explore real-time price charts with SMA and anomalies.
  3. Toggle ML predictions and model comparison.
  4. Check news headlines with sentiment analysis.
  5. Save your favorite stocks in the watchlist.

⚠️ Disclaimer

This project is for educational purposes only. Predictions and insights are not financial advice.


πŸ“Œ Notes

  • Optimized for desktop browsers only (not mobile responsive).
  • Requires valid API keys (News API, Firebase, etc.).
  • Works best on Chrome, Edge, or Firefox.

About

πŸ“ˆ Real-time stock analysis dashboard with ML predictions, anomaly detection, technical indicators & sentiment analysis. Built with React + FastAPI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published