Vibe Coding Meets Algo Trading
๐จ๐ณ ไธญๆ ย ยทย ๐บ๐ธ English
๐ Live Demo ย ยทย ๐บ Video ย ยทย ๐ฌ Community ย ยทย ๐ Quick Start
7 AI Agents ยท Python Strategies ยท 10+ Exchanges ยท Prediction Markets ยท Your Server, Your Keys
Describe your trading idea in natural language โ AI writes the Python strategy โ Backtest โ Live trade.
Zero coding required. Self-hosted โ your API keys and strategies never leave your machine.
๐บ๐ธ English ยท ๐จ๐ณ ็ฎไฝไธญๆ ยท ๐น๐ผ ็น้ซไธญๆ ยท ๐ฏ๐ต ๆฅๆฌ่ช ยท ๐ฐ๐ท ํ๊ตญ์ด ยท ๐ฉ๐ช Deutsch ยท ๐ซ๐ท Franรงais ยท ๐น๐ญ เนเธเธข ยท ๐ป๐ณ Tiแบฟng Viแปt ยท ๐ธ๐ฆ ุงูุนุฑุจูุฉ
- ๐ Quick Start (2 Minutes)
- ๐ฏ Why QuantDinger?
- ๐ธ Visual Tour
- โจ Key Features
- ๐ Supported Exchanges & Brokers
- ๐๏ธ Architecture & Configuration
- ๐ Documentation Index
- ๐ผ License & Commercial
- ๐ค Community & Support
Only need: Docker installed. Nothing else.
# 1. Clone
git clone https://github.com/brokermr810/QuantDinger.git
cd QuantDinger
# 2. Configure (edit admin password & AI API key)
cp backend_api_python/env.example backend_api_python/.env
# 3. Launch!
docker-compose up -d --buildWindows PowerShell: use
Copy-Item backend_api_python\env.example -Destination backend_api_python\.env
๐ Done! Open http://localhost:8888 | Login: quantdinger / 123456
๐ Key settings in backend_api_python/.env
# Required โ Change for production!
ADMIN_USER=quantdinger
ADMIN_PASSWORD=your_secure_password
SECRET_KEY=your_random_secret_key
# Optional โ Enable AI features (pick one)
OPENROUTER_API_KEY=your_key # Recommended: 100+ models
OPENAI_API_KEY=your_key # GPT-4o
DEEPSEEK_API_KEY=your_key # Cost-effective
GOOGLE_GEMINI_API_KEY=your_key # Gemini๐ง Common Docker Commands
docker-compose ps # View service status
docker-compose logs -f backend # View backend logs (real-time)
docker-compose restart backend # Restart backend only
docker-compose up -d --build # Rebuild & restart all
docker-compose down # Stop all servicesUpdate to latest version:
git pull && docker-compose up -d --buildBackup & Restore database:
docker exec quantdinger-db pg_dump -U quantdinger quantdinger > backup.sql
cat backup.sql | docker exec -i quantdinger-db psql -U quantdinger quantdingerCustom port โ create .env in project root:
FRONTEND_PORT=3000 # Default: 8888
BACKEND_PORT=127.0.0.1:5001 # Default: 5000Vibe Coding for Trading โ Describe your trading idea in plain English (or any language). AI writes the Python strategy, backtests it, and deploys it to live markets. No manual coding. No SaaS lock-in. Everything runs on your own server.
| ๐ต Vibe Coding | Describe ideas in natural language โ AI generates production-ready Python strategies |
| ๐ 100% Self-Hosted | API keys & strategies never leave your server โ privacy by design |
| ๐ค 7 AI Agents | Multi-agent research team: parallel analysis โ debate โ trade decision |
| ๐ Python-Native | Full ecosystem (Pandas, NumPy, TA-Lib, scikit-learn) โ no proprietary language limits |
| ๐ Professional Charts | K-line charts with Python indicators, real-time visualization |
| ๐ Crypto + Stocks + Forex | 10+ exchanges, IBKR, MT5 โ all in one platform |
| ๐ Prediction Markets | On-demand AI analysis for Polymarket โ probability divergence, opportunity scoring |
| ๐ฐ Monetization-Ready | Membership, credits, USDT on-chain payment โ built-in |
| โก 2-Minute Deploy | docker-compose up -d โ production-ready, zero build |
๐ธ Visual Tour ย |ย ๐บ Watch Video Demo
|
|
๐ Professional Quant Dashboard |
|
![]() ๐ค AI Deep Research |
![]() ๐ฌ Smart Trading Assistant |
![]() ๐ Indicator Analysis |
![]() ๐ AI Strategy Coding |
![]() ๐ Portfolio Monitor |
|
No coding required. Tell AI what you want in natural language โ it generates production-ready Python strategies. Or write your own with the full Python ecosystem (Pandas, NumPy, TA-Lib, scikit-learn). Visualize everything on professional K-line charts.
๐ฌ "I want a MACD crossover strategy with RSI filter on BTC 15min"
โ AI generates Python code
โ ๐ Visualize on K-line charts
โ ๐ Backtest with rich metrics
โ ๐ค AI suggests optimizations
โ ๐ One-click deploy to live trading
Not just one AI call. QuantDinger deploys 7 specialized agents that collaborate like a research team โ analyze, debate, and reach consensus:
Phase 1 (Parallel): ๐ Technical ยท ๐ Fundamental ยท ๐ฐ News ยท ๐ญ Sentiment ยท โ ๏ธ Risk
Phase 2 (Debate): ๐ Bull vs ๐ป Bear โ structured argumentation
Phase 3 (Decision): ๐ฏ TraderAgent โ BUY / SELL / HOLD (with confidence %)
- ๐ต Natural Language Analysis โ Ask "Analyze BTC trend for next week" โ 7 agents deliver a full report
- ๐ก AI Trading Radar โ Auto-scans Crypto/Stocks/Forex hourly, surfaces opportunities
- โก Quick Trade Panel โ See a signal? One-click to execute. No page switching.
- ๐ง Memory-Augmented โ Agents learn from past analyses (local RAG, not cloud)
- ๐ 5+ LLM Providers: OpenRouter (100+ models), OpenAI, Gemini, DeepSeek, Grok
- ๐ Polymarket Prediction Markets โ On-demand AI analysis for prediction markets. Input a market link or title โ AI analyzes probability divergence, opportunity score, and trading recommendations. Full history tracking and billing integration.
| Step | What Happens |
|---|---|
| 1. ๐ฌ Describe | Tell AI your trading idea in natural language โ or write Python directly |
| 2. ๐ค Generate | AI creates the indicator & strategy code for you |
| 3. ๐ Visualize | See signals on professional K-line charts instantly |
| 4. ๐ Backtest | Rich metrics + AI analyzes results & suggests improvements |
| 5. ๐ Execute | Live trade on 10+ crypto exchanges, IBKR (stocks), MT5 (forex) |
| 6. ๐ก Monitor | Portfolio tracker, alerts via Telegram/Discord/Email/SMS/Webhook |
On-demand AI analysis for prediction markets. Input a Polymarket link or market title โ AI analyzes probability divergence, opportunity score, and provides trading recommendations.
Features:
- ๐ Smart Search โ Supports market links, slugs, or natural language titles
- ๐ค AI Probability Prediction โ Compares AI-predicted probability vs market probability
- ๐ Opportunity Scoring โ Calculates opportunity score based on divergence and confidence
- ๐ก Trading Recommendations โ YES/NO/HOLD with detailed reasoning and key factors
- ๐ History Tracking โ View all your past analyses with full details in a dedicated history tab
- ๐ฐ Billing Integration โ Configurable credit consumption per analysis (set via
BILLING_COST_POLYMARKET_DEEP_ANALYSIS) - ๐ Multi-Language โ AI responses match your frontend language (English/Chinese)
- ๐ Admin Statistics โ All analyses tracked in user management dashboard
Usage:
1. Navigate to AI Asset Analysis โ Prediction Markets tab
2. Input Polymarket link or market title
3. AI analyzes and returns:
- Market probability vs AI-predicted probability
- Divergence analysis
- Opportunity score (0-100)
- Trading recommendation (YES/NO/HOLD)
- Detailed reasoning and key factors
4. View analysis history anytime
Most open-source projects need months of custom billing work. QuantDinger ships with a complete monetization system out of the box:
- ๐ณ Membership Plans โ Monthly / Yearly / Lifetime tiers with configurable pricing & credits
- โฟ USDT On-Chain Payment โ TRC20 scan-to-pay, HD Wallet (xpub) per-order addresses, auto-reconciliation via TronGrid
- ๐ช Indicator Marketplace โ Users publish & sell Python indicators, you take commission
- โ๏ธ Admin Dashboard โ Order management, AI usage stats, user analytics
- Multi-User โ PostgreSQL-backed accounts with role-based permissions
- OAuth โ Google & GitHub one-click login
- Protection โ Cloudflare Turnstile, IP/account rate limiting, email verification
- Demo Mode โ Read-only mode for public showcases
๐ง AI Agent Architecture Diagram (Click to expand)
flowchart TB
subgraph Entry["๐ API Entry"]
A["๐ก POST /api/analysis/multi"]
A2["๐ POST /api/analysis/reflect"]
end
subgraph Service["โ๏ธ Service Orchestration"]
B[AnalysisService]
C[AgentCoordinator]
D["๐ Build Context<br/>price ยท kline ยท news ยท indicators"]
end
subgraph Agents["๐ค 7-Agent Workflow"]
subgraph P1["๐ Phase 1 ยท Parallel Analysis"]
E1["๐ MarketAnalyst"]
E2["๐ FundamentalAnalyst"]
E3["๐ฐ NewsAnalyst"]
E4["๐ญ SentimentAnalyst"]
E5["โ ๏ธ RiskAnalyst"]
end
subgraph P2["๐ฏ Phase 2 ยท Bull vs Bear Debate"]
F1["๐ BullResearcher"]
F2["๐ป BearResearcher"]
end
subgraph P3["๐น Phase 3 ยท Final Decision"]
G["๐ฐ TraderAgent โ BUY / SELL / HOLD"]
end
end
subgraph Memory["๐ง Local Memory Store"]
M1[("Agent Memories (PostgreSQL)")]
end
subgraph Reflect["๐ Reflection Loop"]
R[ReflectionService]
W["โฐ ReflectionWorker โ verify + learn"]
end
A --> B --> C --> D
D --> P1 --> P2 --> P3
Agents <-.->|"RAG retrieval"| M1
C --> R
W -.->|"update memories"| M1
| Exchange | Markets |
|---|---|
| Binance | Spot, Futures, Margin |
| OKX | Spot, Perpetual, Options |
| Bitget | Spot, Futures, Copy Trading |
| Bybit | Spot, Linear Futures |
| Coinbase | Spot |
| Kraken | Spot, Futures |
| KuCoin | Spot, Futures |
| Gate.io | Spot, Futures |
| Bitfinex | Spot, Derivatives |
| Market | Broker/Source | Trading |
|---|---|---|
| US Stocks | Interactive Brokers (IBKR), Yahoo Finance, Finnhub | โ Via IBKR |
| Forex | MetaTrader 5 (MT5), OANDA | โ Via MT5 |
| Futures | Exchange APIs | โก Data + Notify |
| Layer | Technology |
|---|---|
| AI Engine | 7-Agent Multi-Agent System ยท RAG Memory ยท 5+ LLM Providers ยท Vibe Coding (NLโPython) |
| Backend | Python 3.10+ ยท Flask ยท PostgreSQL 16 ยท Redis (optional) |
| Frontend | Vue.js ยท Ant Design ยท KlineCharts ยท ECharts |
| Payment | USDT TRC20 On-Chain ยท HD Wallet (BIP-32/44) ยท TronGrid API |
| Mobile | Vue 3 + Capacitor (Android / iOS) |
| Deploy | Docker Compose ยท Nginx ยท Zero-build one-click |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Docker Compose โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ frontend (Nginx) โ :8888 โ โ
โ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ โ
โ โ /api/* proxy โ
โ โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ โ
โ โ backend (Flask) โ :5000 โ โ
โ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ โ
โ โ postgres (PG 16) โ :5432 โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ External: LLM APIs ยท Exchanges ยท โ
โ TronGrid ยท Data providers โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
QuantDinger/
โโโ backend_api_python/ # ๐ Backend (Open Source, Apache 2.0)
โ โโโ app/routes/ # API endpoints
โ โโโ app/services/ # Business logic (AI, trading, payment)
โ โโโ migrations/init.sql # Database schema
โ โโโ env.example # โ๏ธ Config template โ copy to .env
โ โโโ Dockerfile
โโโ frontend/ # ๐จ Frontend (Pre-built)
โ โโโ dist/ # Static files (HTML/JS/CSS)
โ โโโ Dockerfile # Nginx image
โ โโโ nginx.conf # SPA routing + API proxy
โโโ docs/ # ๐ Guides & tutorials
โโโ docker-compose.yml # ๐ณ One-click deployment
โโโ LICENSE # Apache 2.0
โ๏ธ Configuration Reference (.env)
Use backend_api_python/env.example as template:
| Category | Key Variables |
|---|---|
| Auth | SECRET_KEY, ADMIN_USER, ADMIN_PASSWORD |
| Database | DATABASE_URL (PostgreSQL connection string) |
| AI / LLM | LLM_PROVIDER, OPENROUTER_API_KEY, OPENAI_API_KEY |
| OAuth | GOOGLE_CLIENT_ID, GITHUB_CLIENT_ID |
| Security | TURNSTILE_SITE_KEY, ENABLE_REGISTRATION |
| Membership | MEMBERSHIP_MONTHLY_PRICE_USD, MEMBERSHIP_MONTHLY_CREDITS |
| USDT Payment | USDT_PAY_ENABLED, USDT_TRC20_XPUB, TRONGRID_API_KEY |
| Proxy | PROXY_PORT or PROXY_URL |
| Workers | ENABLE_PENDING_ORDER_WORKER, ENABLE_PORTFOLIO_MONITOR |
๐ API Endpoints
| Endpoint | Description |
|---|---|
GET /api/health |
Health check |
POST /api/user/login |
User authentication |
GET /api/user/info |
Current user info |
GET /api/billing/plans |
Membership plans |
POST /api/billing/usdt/create-order |
Create USDT payment order |
For the full route list, see backend_api_python/app/routes/.
All detailed guides are in the docs/ folder:
| Document | Description |
|---|---|
| Changelog | Version history & migration notes |
| Multi-User Setup | PostgreSQL multi-user deployment |
| Guide | ๐บ๐ธ EN | ๐จ๐ณ CN | ๐น๐ผ TW | ๐ฏ๐ต JA | ๐ฐ๐ท KO |
|---|---|---|---|---|---|
| Strategy Dev | EN | CN | TW | JA | KO |
| Cross-Sectional | EN | CN | |||
| Code Examples | examples/ |
| Guide | English | ไธญๆ |
|---|---|---|
| IBKR (US Stocks) | Guide | โ |
| MT5 (Forex) | Guide | ๆๅ |
| OAuth (Google/GitHub) | Guide | ๆๅ |
| Channel | English | ไธญๆ |
|---|---|---|
| Telegram | Setup | ้ ็ฝฎ |
| Email (SMTP) | Setup | ้ ็ฝฎ |
| SMS (Twilio) | Setup | ้ ็ฝฎ |
Backend source code is licensed under Apache License 2.0. See LICENSE.
The frontend UI is provided as pre-built files. Trademark rights (name/logo/branding) are governed separately โ see TRADEMARKS.md.
If you are a university, research institution, non-profit, community group, or educational program, you can apply for free authorization and full frontend source code:
- ๐ซ Universities & academic research
- ๐ Open-source communities & developer groups
- ๐ค Non-profit & public welfare organizations
- ๐ Educational programs & student hackathons
For commercial use, purchase a license to get:
- Full frontend source code + future updates
- Branding authorization โ modify name/logo/copyright as agreed
- Operations support โ deployment, upgrades, incident response
- Consulting โ architecture review, performance tuning
| Channel | Link |
|---|---|
| Telegram | t.me/worldinbroker |
| brokermr810@gmail.com |
Crypto Donations (ERC-20 / BEP-20 / Polygon / Arbitrum)
0x96fa4962181bea077f8c7240efe46afbe73641a7
๐ก Want to become a partner? Contact brokermr810@gmail.com or Telegram.
Built with โค๏ธ on the shoulders of: Flask ยท Pandas ยท CCXT ยท yfinance ยท Vue.js ยท Ant Design Vue ยท KlineCharts ยท ECharts ยท Capacitor ยท bip-utils
If QuantDinger helps you, consider โญ starring the repo โ it means a lot!






