AI-Powered Multi-Agent Market Simulation & Sentiment Analysis Platform
A neo-brutalist "War Room" where thousands of LLM agents trade in real-time.
StockMind is a multi-agent financial simulation system that models hedge funds, retail traders, market makers, and regulators โ each with distinct strategies, risk profiles, and AI-driven decision logic.
Watch thousands of agents trade in real-time. Trigger market scenarios. Observe emergent behavior. Understand how sentiment, news, and agent psychology shape market dynamics.
This is not a trading app. It's a simulation engine for market research, strategy testing, and AI behavior analysis.
| Agent | Strategy | Risk Profile | Behavior |
|---|---|---|---|
| ๐ฆ Hedge Fund | Quantitative / Arbitrage | High (0.8) | Maximize alpha via complex timing |
| ๐ค Retail Trader | Emotional / Momentum | Low (0.3) | FOMO-driven herding behavior |
| ๐ฐ News Agent | Information Broker | N/A | Classifies & broadcasts sentiment |
| ๐ช Market Maker | Delta Neutral / Spread | Med (0.2) | Provides liquidity, maintains spreads |
| โ๏ธ Regulator | Market Stability | N/A | Enforces circuit breakers (20% halt) |
- FastAPI + AsyncIO backend orchestrates thousands of concurrent agent decisions
- WebSocket streaming delivers live market dynamics to the dashboard
- Sub-second latency from agent decision โ chart update
- Groq LLaMA 3.3 70B processes real-time news ingestion
- Sentiment scores directly influence agent behavior and price movements
- Heatmaps visualize sentiment distribution across market sectors
- NVIDIA NIM embeddings (
nv-embedqa-e5-v5) index historical market events - Agents query this knowledge base to inform decisions โ e.g., "this pattern looks like 2008"
- Retrieval-augmented reasoning makes agent behavior more realistic
Pre-configured market scenarios:
- ๐ Bull Run
- ๐ป Bear Crash
- ๐ธ Meme Stock Frenzy
- โก Flash Crash
- High-contrast dark mode with electric lime, purple, and pink accents
- Live Recharts visualizations: price charts, volume bars, sentiment heatmaps
- Agent activity feed โ see each agent's decision in real-time
| Layer | Technology |
|---|---|
| Frontend | Next.js 15, React 19, TypeScript, Tailwind CSS, Recharts |
| Backend | FastAPI, Python, AsyncIO |
| Real-time | WebSockets |
| LLM | Groq LLaMA 3.3 70B |
| RAG | NVIDIA NIM Embeddings |
| Market Data | yfinance |
| News/Sentiment | NewsAPI |
| Database | Supabase PostgreSQL |
| Auth | JWT with token rotation |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Next.js War Room Dashboard โ
โ (Neo-brutalist real-time UI) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ WebSocket
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ FastAPI Backend โ
โ Simulation Engine (AsyncIO) โ
โโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโ
โ โ โ
โโโโโโโโโโผโโโ โโโโโผโโโโโ โโโโผโโโโโโโโโโโ
โ Agent Swarmโ โ Groq โ โ NVIDIA NIM โ
โ(1000s LLM) โ โ LLM โ โ RAG Engine โ
โโโโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโ
โ
โโโโโโโโโโผโโโโโโโโโโโโโโโ
โ yfinance + NewsAPI โ
โ (Real market data) โ
โโโโโโโโโโโโโโโโโโโโโโโโโ
git clone https://github.com/pritpatel2412/StockMind
cd StockMind
# Frontend
npm install
npm run dev
# Backend
cd stockmind-backend
pip install -r requirements.txt
uvicorn main:app --reloadRequired env vars: GROQ_API_KEY, NVIDIA_NIM_API_KEY, NEWS_API_KEY, SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY
Prit Patel โ B.Tech CSE @ CHARUSAT University GitHub ยท LinkedIn