AI-driven financial surveillance platform that detects insider trading and market manipulation (pump-and-dump, spoofing, layering) using a multi-modal ensemble of Isolation Forest, LSTM Autoencoders, Graph Neural Networks, and FinBERT sentiment analysis on real-time NSE stock data.
- Python 3.10+
- Node.js 18+
cd backend- Create virtual environment:
python -m venv venv - Activate it:
- Windows:
venv\Scripts\Activate.ps1 - Mac/Linux:
source venv/bin/activate
- Windows:
- Install dependencies:
pip install -r requirements.txt - Copy
.env.exampleto.envand fill in your own credentials (Gmail App Password, Twelve Data API key) - Run:
uvicorn app.main:app --reload --port 8000
cd frontend- Install dependencies:
npm install - Run:
npm run dev - Open
http://localhost:5173
- Postgres/Neo4j are optional — the app automatically falls back to SQLite / an in-memory trader graph if they're not running locally, so it works out of the box without Docker.
- On first run, inject a few scenarios and click "Fast Forward" a couple times to warm up the ML models (LSTM/GNN need some baseline data to train on) before demoing.
- Never commit your
.envfile — it's already excluded via.gitignore.
- Real-time price simulation blended with live Twelve Data API feed
- Multi-model risk scoring: Isolation Forest, LSTM Autoencoder, Graph Neural Network, FinBERT sentiment
- Supervised RandomForest classifier trained on confirmed alert patterns
- Automated email reporting and complaint filing via Gmail SMTP
- Explainability layer (why/immediate issue/recommended action per alert, model contribution breakdown)
- Trader network visualization and wash-trading detection
- Live news feed integration via Google News RSS
- Dashboard tabs: Model Comparison, Evaluation Metrics, Trader Reputation, News Feed