Skip to content
Skillpedia
Analysis & spreadsheets37k Β· #7494

vibe-trading

What it does

This skill sets up and explains the Vibe-Trading finance toolkit for an AI agent. It is for investors, analysts and students who want backtests, factor research and market data in one place.

When to use it

  • βœ“When you want to backtest a trading idea across stock, crypto or other markets.
  • βœ“When you want factor analysis, options pricing or finance research support.
  • βœ“When you want to connect a finance toolkit to your AI assistant through a tool setup.

Skill link

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œHelp me set up the Vibe-Trading toolkit and backtest a simple moving-average idea on a few stocks.”

5 new skills a week. 1 minute to read.

How it works

The agent installs the toolkit and adds it to your AI tool's settings. Core research tools work without API keys for some markets, and other data sources need their own access. The agent then runs the backtest or analysis you ask for.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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-trading Interactive CLI / TUI
vibe-trading serve Launch FastAPI web server
vibe-trading-mcp Start 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:

  1. analyze_trade_journal β€” profile your behavior (holding period, win rate, disposition effect, chasing, overtrading, anchoring).
  2. extract_shadow_strategy β€” distill 3-5 if-then rules that describe your profitable roundtrips.
  3. run_shadow_backtest β€” backtest those rules across A/HK/US/crypto and compute delta-PnL vs your realized trades.
  4. render_shadow_report β€” produce an HTML/PDF report (8 sections + charts) with today's matching signals.
  5. 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 and LONGBRIDGE_APP_KEY / LONGBRIDGE_APP_SECRET / LONGBRIDGE_ACCESS_TOKEN). To force it for a run, set "source": "longbridge" in config.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. The IndiaEquityEngine models T+1 delivery, no overnight shorts (set allow_short for intraday), configurable circuit bands, 1-share lots, and the STT/stamp-duty/exchange/GST cost stack. Optionally back-fill from your live broker via the india_broker source (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
FAQ

Do I need API keys to use it?

Some core research tools work without keys for several markets, but certain data sources and brokerage tools need their own access.

What commands does it install?

A command-line interface, a web server launcher and an MCP server for AI tools such as Claude Desktop or Cursor.

Is it financial advice?

No. It is a research toolkit, and any results should be checked before you rely on them for decisions.

Details

Original description by the author

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

Popularity

GitHub stars
37k
Ranking position
#7494
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills