vibe-trading
Skill này làm gì
Skill này thiết lập và giải thích bộ công cụ tài chính Vibe-Trading cho một agent AI. Skill dành cho nhà đầu tư, nhà phân tích và sinh viên muốn có backtest, nghiên cứu nhân tố và dữ liệu thị trường ở một nơi.
Khi nào nên dùng
- ✓Khi bạn muốn backtest một ý tưởng giao dịch trên cổ phiếu, tiền mã hóa hoặc các thị trường khác.
- ✓Khi bạn muốn phân tích nhân tố, định giá quyền chọn hoặc hỗ trợ nghiên cứu tài chính.
- ✓Khi bạn muốn kết nối bộ công cụ tài chính với trợ lý AI qua một thiết lập công cụ.
Liên kết skill
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi thiết lập bộ công cụ Vibe-Trading và backtest một ý tưởng đường trung bình động đơn giản trên vài cổ phiếu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent cài đặt bộ công cụ và thêm nó vào cài đặt của công cụ AI của bạn. Các công cụ nghiên cứu cốt lõi hoạt động không cần API key cho một số thị trường, còn các nguồn dữ liệu khác cần quyền truy cập riêng. Sau đó agent chạy backtest hoặc phân tích mà bạn yêu cầu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Vibe-Trading
Professional finance research toolkit with AI-powered backtesting (11 engines), multi-agent teams, 90 specialized skills, the Alpha Zoo (478 pre-built quantitative alphas across qlib158 / alpha101 / gtja191 / academic / fundamental with one-line CLI benchmarking), and the Shadow Account loop — extract your implicit trading rules from a journal, backtest them across A股/港股/美股/crypto, then see where they would have served you better.
Setup
pip install vibe-trading-ai
Package name vs commands: The PyPI package is
vibe-trading-ai. Once installed, you get:
Command Purpose vibe-tradingInteractive CLI / TUI vibe-trading serveLaunch FastAPI web server vibe-trading-mcpStart MCP server (for Claude Desktop, OpenClaw, Cursor, etc.)
Add to your agent's MCP config:
{
"mcpServers": {
"vibe-trading": {
"command": "vibe-trading-mcp"
}
}
}
API Key Requirements
Core research MCP tools work with zero API keys for HK/US/Canada/crypto. After pip install, backtesting, market data, factor analysis, options pricing, chart patterns, web search, document reading, trade journal analysis, shadow-account extraction/backtest/report, the Alpha Zoo (478 pre-built alphas), and all 90 skills are ready to use. IBKR tools require a local TWS / IB Gateway session; run_swarm requires an LLM key.
| Feature | Key needed | When |
|---|---|---|
| HK/US/Canada equities & crypto | None | Always free (yfinance / stooq / yahoo + OKX) |
| China A-share data | None | Free via akshare / baostock / tencent / sina / eastmoney fallback (TUSHARE_TOKEN optional for premium quality) |
| Premium US fundamentals/quotes | FINNHUB_API_KEY / ALPHAVANTAGE_API_KEY / TIINGO_API_KEY / FMP_API_KEY |
Only for optional-key providers (graceful fallback to free sources) |
Multi-agent swarm (run_swarm) |
OPENAI_API_KEY + LANGCHAIN_MODEL_NAME |
Swarm spawns internal LLM workers |
What You Can Do
Shadow Account — flagship loop
Feed a CSV broker export (同花顺 / 东财 / 富途 / generic), and the agent will:
analyze_trade_journal— profile your behavior (holding period, win rate, disposition effect, chasing, overtrading, anchoring).extract_shadow_strategy— distill 3-5 if-then rules that describe your profitable roundtrips.run_shadow_backtest— backtest those rules across A/HK/US/crypto and compute delta-PnL vs your realized trades.render_shadow_report— produce an HTML/PDF report (8 sections + charts) with today's matching signals.scan_shadow_signals— list today's symbols that match your shadow's entry cadence (research only).
Backtesting
Create and run quantitative strategies across 11 engines (ChinaA, GlobalEquity, IndiaEquity, KoreaEquity, VietnamEquity, BrazilEquity, Crypto, ChinaFutures, GlobalFutures, Forex, cross-market Composite) plus an options portfolio engine, with 29 market-data sources (auto-detect + ordered fallback; the hosted forex tickerall source is explicit-only):
- HK/US equities via yfinance / stooq / yahoo (free, no API key); optionally via Longbridge historical OHLCV (
longbridge, requires the optional SDK andLONGBRIDGE_APP_KEY/LONGBRIDGE_APP_SECRET/LONGBRIDGE_ACCESS_TOKEN). To force it for a run, set"source": "longbridge"inconfig.json. - Canada equities (TSX/TSXV) via yahoo / yfinance using Yahoo's canonical
<TICKER>.TO(TSX, e.g.TD.TO) or<TICKER>.V(TSXV, e.g.PNG.V) suffixes — free, no API key. The GlobalEquity engine uses CAD identity, whole-share orders, configurable Canadian commission/slippage, and the TSX/TSXV price-increment grid. - India equities (NSE/BSE) via yahoo / yfinance using
<SYMBOL>.NS(NSE, e.g.RELIANCE.NS) or<SCRIP>.BO(BSE, e.g.500325.BO) — free, no API key. TheIndiaEquityEnginemodels T+1 delivery, no overnight shorts (setallow_shortfor intraday), configurable circuit bands, 1-share lots, and the STT/stamp-duty/exchange/GST cost stack. Optionally back-fill from your live broker via theindia_brokersource (Shoonya/Dhan; requires broker login). - Korea equities (KRX: KOSPI/KOSDAQ) via pykrx using
<CODE>.KS(KOSPI, e.g.005930.KS) or<CODE>.KQ(KOSDAQ, e.g.247540.KQ) — free, no API key (pip install "vibe-trading-ai[krx]"; yahoo/yfinance fallback needs no extra). pykrx serves daily bars only (an intraday request falls through to another sour
Câu hỏi thường gặp
Tôi có cần API key để dùng không?
Một số công cụ nghiên cứu cốt lõi hoạt động không cần key cho nhiều thị trường, nhưng một số nguồn dữ liệu và công cụ môi giới cần quyền truy cập riêng.
Nó cài những lệnh nào?
Một giao diện dòng lệnh, một trình khởi chạy máy chủ web và một máy chủ MCP cho các công cụ AI như Claude Desktop hoặc Cursor.
Đây có phải là tư vấn tài chính không?
Không. Đây là bộ công cụ nghiên cứu, và mọi kết quả nên được kiểm tra trước khi bạn dựa vào nó để ra quyết định.
Chi tiết
Mô tả gốc của tác giả
Professional finance research toolkit — backtesting (11 engines + benchmark comparison panel), factor analysis, Alpha Zoo (478 pre-built alphas across qlib158/alpha101/gtja191/academic/fundamental), options pricing, 90 finance skills, 30 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 29 market-data sources (tushare, yfinance, okx, binance, akshare, baostock, tencent, mootdx, ccxt, futu, mt5, tickerall, local, eastmoney, sina, stooq, yahoo, pykrx, india_broker, qveris, longbridge, nobitex, wallex, plus optional-key finnhub/alphavantage/t
repo: HKUDS/Vibe-Trading
Độ phổ biến
- Sao GitHub
- 37k
- Vị trí xếp hạng
- #7494
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
adr-hshare
37kChỉ cho agent của bạn cách so sánh giá của một công ty Trung Quốc được niêm yết ở nhiều thị trường, như ADR ở Mỹ và cổ phiếu ở Hồng Kông.
akshare
37kCho agent của bạn lấy dữ liệu thị trường miễn phí: cổ phiếu Trung Quốc và toàn cầu, tương lai, ngoại hối, chỉ số kinh tế, không cần API key.
alpha-zoo
37kCho agent của bạn duyệt thư viện nhân tố cổ phiếu dựng sẵn và kiểm tra cả một nhóm nhân tố dự đoán lợi nhuận tốt đến đâu trên thị trường đã chọn.
asset-allocation
37kDạy agent của bạn các phương pháp phân bổ danh mục như mean-variance, Black-Litterman và phân bổ rủi ro, cùng cách áp dụng chúng với các bộ tối ưu có sẵn.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.