Protecting retail investors from market manipulation with real-time ML-powered detection
View Demo โข Tech Stack โข Architecture โข Run Locally
SentinelMarket is a production-ready, full-stack data platform that detects pump-and-dump schemes and market manipulation in the Indian stock market (NSE/BSE) using:
- ๐ค Machine Learning โ Isolation Forest anomaly detection with 47 engineered features
- ๐ Real-time Data Pipelines โ ETL with data warehouse, data lake, and stream processing
- ๐ฑ Social Media Intelligence โ Twitter & Telegram monitoring with FinBERT sentiment analysis
- โก Live Risk Scoring โ 0-100 risk scores with explainability and predictive alerts
Business Impact: Designed to protect 100+ million retail investors who lose โน10,000+ crores annually to market manipulation
Real-time market overview with live indices, feature showcase, and risk monitoring
Live anomaly detection feed with sortable stock table showing risk scores
Risk distribution, market health metrics, and historical trend analysis
Predictive alerts with crash probability forecasting 3-7 days ahead
Twitter & Telegram monitoring with sentiment analysis and hype detection
Data engineering dashboard showing pipeline health, runs, and warehouse stats
Data quality monitoring with completeness metrics and validation reports
| Layer | Technologies |
|---|---|
| Frontend | Next.js 16, TypeScript, Tailwind CSS, Recharts |
| Backend | Python 3.11, FastAPI, SQLAlchemy, pandas |
| Database | PostgreSQL (Supabase), SQLite fallback |
| ML/AI | scikit-learn (Isolation Forest), FinBERT, 47 features |
| Data Engineering | ETL Pipelines, Data Lake, Data Warehouse, APScheduler |
| Streaming | In-memory event stream (Kafka-style architecture) |
| Social | Twitter API (Tweepy), Telegram API (Telethon) |
| Deployment | Render (Backend), Netlify (Frontend) |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DATA SOURCES โ
โ ๐ Stock APIs ๐ฑ Twitter ๐ฎ Telegram ๐ฐ News โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโ
โ ETL PIPELINES โ
โ Extract โ Transform โ Load โ
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโผโโโโโ โโโโโโโผโโโโโโ โโโโโโโผโโโโโโ
โData Lakeโ โData โ โ Stream โ
โ (Raw) โ โWarehouse โ โ Processor โ
โโโโโโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโโโโโโโ
โ
โโโโโโโโโผโโโโโโโโ
โ ML ENGINE โ
โ โข 47 Features โ
โ โข Isolation โ
โ Forest โ
โโโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโผโโโโโโโโ
โ RISK SCORING โ
โ (0-100) โ
โโโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโผโโโโโโโโ
โ FastAPI โ
โ 30+ Endpointsโ
โโโโโโโโโฌโโโโโโโโ
โ
โโโโโโโโโผโโโโโโโโ
โ Next.js UI โ
โ 8+ Pages โ
โโโโโโโโโโโโโโโโโ
- Volume Spike Detection โ Z-score analysis with 85% accuracy
- Price Anomaly Detection โ RSI, Bollinger Bands, momentum indicators
- ML Detection โ Isolation Forest trained on 6,297 data points
- Combined Risk Score โ Weighted ensemble with explainability
- ETL Pipelines โ Modular framework with error handling & monitoring
- Data Warehouse โ PostgreSQL with optimized time-series queries
- Data Lake โ Gzip-compressed JSON for raw data preservation
- Stream Processing โ Event-driven architecture for real-time updates
- Data Quality โ Completeness metrics, validation, duplicate detection
- Twitter Monitoring โ Real-time sentiment with FinBERT
- Telegram Channels โ Pump signal detection
- Hype Score โ 0-100 coordination detection
- Risk Alerts โ HIGH/EXTREME risk notifications
- Crash Prediction โ 3-7 day ahead probability forecasting
- Pattern Matching โ Historical scam comparison
# Clone
git clone https://github.com/umangkumarchaudhary/SentinelMarket-Backend.git
cd SentinelMarket-Backend
# Backend
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python -m uvicorn main:app --host 127.0.0.1 --port 8000 --reload
# Frontend (new terminal)
cd frontend
npm install
npm run devAccess:
- Frontend: http://localhost:3000
- API Docs: http://localhost:8000/docs
| Metric | Value |
|---|---|
| API Response Time | <500ms avg |
| Detection Accuracy | ~90% combined |
| False Positive Rate | 15-20% |
| Stocks Analyzed/Hour | 1000+ |
| Data Quality | >95% valid ratio |
This project showcases expertise in:
| Area | Skills |
|---|---|
| Data Engineering | ETL Pipelines, Data Warehouse, Data Lake, Stream Processing, Data Quality |
| Machine Learning | Feature Engineering (47 features), Anomaly Detection, Model Deployment |
| Backend | FastAPI, REST APIs, PostgreSQL, SQLAlchemy, Error Handling |
| Frontend | Next.js, TypeScript, Responsive Design, Real-time Updates |
| DevOps | Render, Netlify, Docker, CI/CD |
| NLP | FinBERT, Sentiment Analysis, Social Media Mining |
MIT License โ See LICENSE for details.
โญ Star this repo if you find it useful! โญ
Built with โค๏ธ for protecting retail investors