Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

vibe-trading

Skill by HKUDS

Vibe-Trading is a finance research toolkit for backtesting, factor analysis and multi-agent research teams. It covers 13 backtest engines, 478 pre-built alphas and 27 market-data sources. It suits quantitative researchers and traders who want AI-assisted strategy work.

  • Score 91
  • 40k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install vibe-trading

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent ~/.claude/skills/vibe-trading

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install vibe-trading in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Vibe-Trading is a Python finance research toolkit installed with pip as vibe-trading-ai. It runs backtests across 13 engines covering China A-shares, Hong Kong, US, Canadian, Indian, Korean, Vietnamese, Taiwanese, crypto, futures and forex markets. It also includes factor analysis, the Alpha Zoo with 478 pre-built alphas, options pricing, 92 finance skills and 31 multi-agent swarm teams.

The Shadow Account workflow takes a broker CSV export, profiles trading behavior, extracts if-then rules from profitable trades, backtests those rules and renders a report. Core tools work without API keys for Hong Kong, US, Canadian and crypto markets. The swarm teams need an OpenAI-compatible key and model name. The project is aimed at finance researchers and traders who want AI assistants to run strategy research.

Written from the project's SKILL.md and checked against it.

What it can do

  • analyze_trade_journalProfiles trading behavior such as holding period, win rate and overtrading from a journal.
  • extract_shadow_strategyDistills 3 to 5 if-then rules that describe profitable roundtrips.
  • run_shadow_backtestBacktests extracted rules and computes delta-PnL against realized trades.
  • render_shadow_reportProduces an HTML or PDF report with eight sections and charts.
  • scan_shadow_signalsLists today's symbols that match the shadow account's entry cadence, for research only.
  • list_skillsLists available strategy patterns and finance skills.
  • load_skillLoads a skill guide, such as the strategy-generate guide.
  • backtestRuns a strategy and returns metrics such as Sharpe, return and drawdown.
  • list_swarm_presetsShows the 31 pre-built multi-agent research teams.
  • run_swarmExecutes a multi-agent team, such as the Investment Committee or Research desk.

What you need

  • Python 3.11 or newer
  • pip install of vibe-trading-ai
  • OPENAI_API_KEY and LANGCHAIN_MODEL_NAME for run_swarm only
  • TUSHARE_TOKEN is optional for premium China A-share data
  • A local TWS or IB Gateway session for IBKR tools

Try asking

  • Analyze my broker journal CSV and profile my trading behavior.
  • Extract shadow strategy rules from my profitable trades and backtest them.
  • Run a backtest of a China A-share strategy and show Sharpe and drawdown.

Good to know

  • run_swarm requires an LLM API key; other tools work without one.
  • IBKR tools need a local TWS or IB Gateway session.
  • The Korea, Vietnam and Taiwan equity engines are long-only.
  • pykrx serves daily bars only, and yfinance is an unofficial client with best-effort availability.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/SKILL.md, agent/api_server.py, agent/backtest/benchmark.py, agent/backtest/binance_account_reconciliation.py, agent/backtest/binance_shadow_evidence.py, agent/backtest/binance_tolerance_calibration.py, agent/backtest/constraints.py, agent/backtest/correlation.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • .editorconfig110 B
  • .env.example24 KB
  • .gitignore61 B
  • SKILL.md32 KB
  • api_server.py11 KB
Show all 3118 files
  • backtest/__init__.py0 B
  • backtest/benchmark.py10 KB
  • backtest/binance_account_reconciliation.py18 KB
  • backtest/binance_shadow_evidence.py16 KB
  • backtest/binance_tolerance_calibration.py5 KB
  • backtest/constraints.py8 KB
  • backtest/correlation.py17 KB
  • backtest/engines/__init__.py1 KB
  • backtest/engines/_market_hooks.py29 KB
  • backtest/engines/argentina_equity.py37 KB
  • backtest/engines/base.py110 KB
  • backtest/engines/brazil_equity.py4 KB
  • backtest/engines/china_a.py9 KB
  • backtest/engines/china_futures.py13 KB
  • backtest/engines/composite.py17 KB
  • backtest/engines/crypto.py26 KB
  • backtest/engines/forex.py7 KB
  • backtest/engines/futures_base.py2 KB
  • backtest/engines/global_equity.py11 KB
  • backtest/engines/global_futures.py13 KB
  • backtest/engines/india_equity.py7 KB
  • backtest/engines/korea_equity.py13 KB
  • backtest/engines/options_portfolio.py39 KB
  • backtest/engines/taiwan_equity.py20 KB
  • backtest/engines/vietnam_equity.py21 KB

And 3088 more files on GitHub.

Alternatives to vibe-trading

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

vibe-trading: common questions

Does Vibe-Trading need API keys to run backtests?

The source says core research tools work with zero API keys for HK, US, Canada and crypto. Only run_swarm requires an LLM key.

What markets does the backtesting cover?

The source lists 13 engines for China A-shares, Hong Kong, US, Canada, India, Korea, Vietnam, Taiwan, crypto, futures, forex and cross-market composites.

What is the Alpha Zoo?

The Alpha Zoo is a set of 478 pre-built quantitative alphas across qlib158, alpha101, gtja191, academic and fundamental groups, with one-line CLI benchmarking.

How do I install vibe-trading?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is vibe-trading free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is vibe-trading safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to vibe-trading?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

vibe-trading Install

Add to stack

Loading.