尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證AI Multi-Agent Trading Copilot — 6-agent LLM pipeline with 80+ quant strategies
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A modular SaaS platform combining 80+ quantitative strategies from 151 Trading Strategies (Kakushadze & Serur, 2018) with a 6-agent LLM architecture powered by Claude.
Prerequisites
• Docker Desktop
• An Anthropic API key (get one at console.anthropic.com)
• (Optional) Polygon.io and Alpha Vantage API keys for live data
This starts:
• PostgreSQL/TimescaleDB on port 5432
• Redis on port 6379
• FastAPI backend on port 8000
• Next.js frontend on port 3000檢視完整 README ↗A modular SaaS platform combining 80+ quantitative strategies from 151 Trading Strategies (Kakushadze & Serur, 2018) with a 6-agent LLM architecture powered by Claude.
┌─────────────────────────────────────────────────────────────────┐
│ Signal Pipeline (DAG) │
│ │
│ ┌──────────────────────────────────────────┐ │
│ │ Analyst Team (parallel) │ │
│ │ [Fundamental] [Technical] [Sentiment] │ │
│ │ [Macro] │ │
│ └──────────────────────┬───────────────────┘ │
│ ↓ │
│ ┌──────────────────────┐ │
│ │ Bull / Bear Debate │ │
│ └──────────┬───────────┘ │
│ ↓ │
│ ┌──────────────────────┐ │
│ │ Risk Manager │ │
│ └──────────┬───────────┘ │
│ ↓ │
│ ┌──────────────────────┐ │
│ │ Trader Agent │ ← claude-opus-4-6 │
│ └──────────┬───────────┘ │
│ ↓ │
│ Final Signal + TP/SL │
└─────────────────────────────────────────────────────────────────┘
| Layer | Technology |
|---|---|
| LLM Orchestration | LangGraph + LangChain |
| Primary LLM | Claude Opus 4.6 (Trader) + Sonnet 4.6 (Analysts) |
| Backend | Python 3.11 + FastAPI |
| Frontend | Next.js 14 + TradingView Lightweight Charts |
| Database | TimescaleDB (PostgreSQL 15) |
| Cache / Bus | Redis 7 |
| Containerization | Docker Compose |
git clone <repo>
cd ai-trading-copilot
cp .env.example .env
Edit .env and set:
ANTHROPIC_API_KEY=sk-ant-...
docker compose up --build
This starts:
Navigate to http://localhost:3000
[email protected] / demo1234cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Start with local postgres/redis running
uvicorn app.main:app --reload --port 8000
cd frontend
npm install
npm run dev
All endpoints under /api/v1. JWT required via Authorization: Bearer <token>.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/signals/generate | Trigger multi-agent analysis |
| GET | /api/v1/signals/{id} | Retrieve signal details |
| GET | /api/v1/portfolio/positions | Current positions + P&L |
| POST | /api/v1/portfolio/execute | Execute a trade signal |
| GET | /api/v1/agents/status | Health of all 6 agents |
| GET | /api/v1/backtest/{strategy} | Run historical backtest |
| POST | /api/v1/debate/trigger | Force bull/bear debate |
| WS | /ws/v1/signals/stream | Real-time signal stream |
curl -X POST http://localhost:8000/api/v1/signals/generate \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL", "timeframe": "1D", "asset_class": "stocks"}'
{
"signal_id": "550e8400-e29b-41d4-a716-446655440000",
"ticker": "AAPL",
"direction": "LONG",
"entry_price": 227.50,
"stop_loss": 220.10,
"take_profit_1": 238.60,
"take_profit_2": 245.90,
"take_profit_3": 257.20,
"confidence_score": 78.4,
"agent_votes": [
{"agent": "FundamentalAnalyst", "direction": "LONG", "confidence": 82.0, "reasoning": "..."},
{"agent": "TechnicalAnalyst", "direction": "LONG", "confidence": 75.0, "reasoning": "..."},
{"agent": "SentimentAnalyst", "direction": "LONG", "confidence": 68.0, "reasoning": "..."},
{"agent": "MacroAnalyst", "direction": "NEUTRAL", "confidence": 55.0, "reasoning": "..."}
],
"reasoning_chain": ["EMA crossover bullish", "RSI not overbought", "Earnings beat last quarter"],
"strategy_sources": ["price_momentum_3.1", "ema_crossover_3.11", "earnings_momentum_3.2"]
}
| Strategy | Ref | Asset Class |
|---|---|---|
| Price Momentum | 3.1 | Stocks |
| Earnings Momentum | 3.2 | Stocks |
| Value Factor | 3.3 | Stocks |
| Pairs Trading | 3.8 | Stocks |
| Mean Reversion (Clusters) | 3.9 | Stocks |
| EMA Crossover Systems | 3.11-3.13 | Stocks |
| Stat Arb (Markowitz) | 3.18 | Stocks |
| Sector Rotation | 4.1 | ETFs |
| VIX Basis | 7.2 | Volatility |
| FX Carry | 8.2 | Forex |
| ANN Crypto | 18.2 | Crypto |
| Sentiment (Naive Bayes) | 18.3 | Crypto |
| Macro Momentum | 19.2 | Global Macro |
| Announcement Trading | 19.5 | Global Macro |
| Tier | Price | Features |
|---|---|---|
| Free | $0 | Paper trading, 3 strategies, delayed data |
| Retail | $49/mo | All strategies, real-time data, 100 signals/day |
| Pro | $199/mo | API access, custom agent tuning, webhooks |
| Enterprise | $499/mo | Dedicated infra, white-label, SLA |
ai-trading-copilot/
├── backend/
│ ├── app/
│ │ ├── main.py # FastAPI app entry point
│ │ ├── config.py # Settings (pydantic-settings)
│ │ ├── agents/ # 6 LangGraph agents
│ │ │ ├── base.py
│ │ │ ├── fundamental.py
│ │ │ ├── technical.py
│ │ │ ├── sentiment.py
│ │ │ ├── macro.py
│ │ │ ├── risk_manager.py
│ │ │ └── trader.py
│ │ ├── pipeline/
│ │ │ ├── graph.py # LangGraph DAG
│ │ │ └── state.py # Shared state TypedDict
│ │ ├── api/routes/ # REST endpoints
│ │ ├── strategies/ # Pure quant implementations
│ │ ├── models/ # Pydantic response models
│ │ ├── db/ # SQLAlchemy + init SQL
│ │ ├── data/ # Market data service
│ │ └── auth/ # JWT + middleware
│ ├── requirements.txt
│ └── Dockerfile
├── frontend/
│ ├── app/ # Next.js App Router pages
│ │ ├── page.tsx # Landing
│ │ ├── dashboard/ # Main trading terminal
│ │ ├── signals/ # Signal history
│ │ ├── portfolio/ # Portfolio tracker
│ │ ├── pricing/ # Subscription tiers
│ │ └── login/ # Auth
│ ├── components/ # React components
│ │ ├── TradingChart.tsx # TradingView chart
│ │ ├── SignalCard.tsx # Signal display
│ │ ├── AgentStatus.tsx # Agent health indicators
│ │ └── Sidebar.tsx # Navigation
│ ├── lib/
│ │ ├── api.ts # API client + mock data
│ │ └── websocket.ts # WS client hook
│ └── Dockerfile
├── docker-compose.yml
├── .env.example
└── README.md
The Risk Manager agent enforces portfolio-level constraints from the spec:
agent_logs tableBuilt with Claude API · LangGraph · FastAPI · Next.js