Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
"Vibe-Trading: Your Personal Trading Agent"
Fetched from the repository for this visit.
English | 中文 | 日本語 | 한국어 | العربية | Español | Bahasa Indonesia
One Command to Empower Your Agent with Comprehensive Trading Capabilities
GitHub topic rankings by stars · Nov 4, 2026
#1 Backtesting ·
#3 Algorithmic Trading ·
#4 Quantitative Finance
Website · Docs · News · Features · Shadow Account · Demo · Quick Start · Examples · API / MCP · Roadmap · Contributors
2026-11-30 🛠️ Stooq leaves the default US chain, plus backtest, options and agent fixes — stooq.com now answers every scripted request with a JavaScript challenge instead of CSV, so US equities fall back from Yahoo straight to Sina and the weekly loader health check no longer probes Stooq. source="stooq" still works when named explicitly. #2442
Run Detail factor attribution keeps the benchmark's opening-bar return, and Options Lab comparisons keep the shared stock position. The NIFTY 100 data-availability contract reports NSE, INR and Asia/Kolkata. get_sec_filings honors the requested page size, and RSSHub event scoring counts sentiment words next to curly quotes and dashes. #2432 · #2434 · #2397 · #2405 · #2392
Memory search with the FTS index keeps Cyrillic, Arabic and Hebrew query words. A read-only tool runs again after a write instead of returning a stale result, and an empty reply on the last iteration gets one more chance to give a final answer. Merged into main. #2424 · #2411 · #2423
2026-11-29 Chat code preservation and metric-label fixes — LaTeX normalization now leaves multi-backtick and multiline inline code unchanged. Fenced code respects the opening marker length and closes only on a standalone fence line, while unclosed streaming fences remain protected.
English and Chinese metric labels use only declared entries, so unknown keys such as constructor and toString stay readable strings. Trading and execution logic are unchanged. For the next pip release. #2425
2026-11-28 🛠️ A rebuilt agent kernel and safer replayable sessions — Vibe-Trading now separates a generic kernel loop and tool runner from product rules and session persistence. Sessions use one canonical thread.jsonl, support queued input, compaction, replay, migration of older sessions, restart recovery, and Swarm nodes run as child agent turns. The CLI is split into subcommands, and provider behavior is catalog-driven. #2398
Swarm shells and backtests run under OS confinement — Seatbelt on macOS, and bwrap or Landlock on Linux — so generated code cannot read the runtime root, credentials or sessions. Truncated answers are marked as partial deliveries, cancellation stops retries at deadlines, and swarm handoff passes only files every candidate writer produced successfully. Merged into main. Older sessions migrate on first open, so back up ~/.vibe-trading/sessions before upgrading.
2026-11-27 🛠️ NIFTY 100 benchmarks and backtest fixes — Alpha Zoo can benchmark and compare factors on the NIFTY 100. Historical tests use current constituents, which introduces survivorship bias. #2352
Web chat can copy user prompts. When several MT5 broker symbols match, the backtest loader uses the configured suffix to pick an exact match. #2383 · #2387
Backtest previews show an overflowed annual return as null. Research Lab cost-sensitivity studies omit that metric and still report the other results. Merged into main. #2386 · #2390
2026-11-26 🛠️ Options comparison exports and Research Lab replay fixes — Options Lab can export a comparison of two saved strategies as JSON or CSV, including both P&L series and the difference from the baseline strategy. #2349
Research Lab preserves saved price precision when replaying the full frozen dataset or a shorter window. A malformed run configuration no longer prevents other runs from appearing in the catalog. #2377 · #2374
Batch replay distinguishes incomplete evidence from failed checks and returns a JSON error for malformed --bindings files. FRED request errors redact the API key. Merged into main. #2371 · #2384 · #2363
2026-11-25 🛠️ Walk-forward audits and scheduled paper-trade cancellations — Research Lab can export each walk-forward validation fold and the optional holdout to CSV with the selected parameters and test metrics. In the 5-minute China A-share paper replay, a scheduled cancellation stops the remaining quantity from matching while preserving earlier fills and fees. #2365 · #2210
When Gemini reports an input token limit error, the agent can compact its context and retry. Saving a memory preserves unrelated cached reads. Headline scoring recognizes sentiment words next to typographic quotes, em and en dashes, and ellipses. Merged into main. #2360 · #2310 · #2362
2026-11-24 🛠️ Claude CLI compatibility and backtest accuracy — The Claude CLI provider now reads the final result from verbose JSON output. Yahoo Finance aggregates hourly data into four-hour bars, and OHLC validation flags infinite prices. #2324 · #2344 · #2332
Risk X-Ray uses the pairs whose correlations can be estimated. Bootstrap, walk-forward and Monte Carlo validation use 0 to indicate an undefined Sharpe ratio when returns have effectively zero dispersion. On main. #2343 · #2333
2026-11-23 🛠️ Replayable research and broader market coverage — Research Lab preserves the original external benchmark prices for frozen replays and exports walk-forward out-of-sample equity as CSV. #2342 · #2335
Options Lab compares two saved strategies on the same spot-price and implied-volatility grid. Symbol search and market data now cover equities and ETFs from six European exchanges via Yahoo Finance. #2318 · #2303
OpenAlgo provides read-only access to account and position data. The CLI can cancel a background Swarm run from a separate process. On main. #2214 · #2340
2026-11-22 🛠️ Backtest accuracy and richer Options Lab exports — Research Lab walk-forward studies keep earlier bars for indicators and score only the original evaluation dates. External benchmark equity matches the reported return across negative prices, and intraday crypto funding follows the 00:00, 08:00 and 16:00 UTC settlements. #2298 · #2301 · #2273
Options Lab CSVs include saved alternatives and comparison results. Local daily data can use timestamp_basis: session_date to preserve exchange dates. #2319 · #2274
Scheduled deliveries preserve newer job state, Signal keeps same-named attachments separate, and job recovery passed native Windows x64 and ARM64 checks. On main, for the next pip release. #2321 · #2307 · CI
2026-11-21 🛠️ Research replay, backtest routing and channel reliability — Frozen Research Lab studies now replay saved fundamental and event columns without refetching providers (#2296), and backtests retry symbols whose returned bars fail validation while benchmarks inherit the run's signed-price policy (#2294, #2292). Swarm deadlines stop overdue workers and clean completed run handles (#2285, #2279); Research Lab reports recover after worker exit, backtests expose return-distribution shape metrics, and Options Lab overlays alternative payoff curves (#2260, #2264, #2242). Session cancellation, Mochat delivery, Feishu completion reactions and DingTalk image downloads now handle their edge cases safely (#2284, #2283, #2251, #2250). Strategy adaptation documentation now states its required inputs and scoped evidence refresh contract (#2299). On main, for the next pip release.
2026-11-20 📈 US share classes and Tencent price history — Eastmoney and Yahoo search now agree on BRK-B.US. Eastmoney checks the ticker before loading prices, keeping listings such as BW-A.US and BWA.US distinct. Tencent now returns all pages of daily bars when dates are entered as 2023-1-5. #2270 · #2266 · #2268
Strategy Comparison ranks a −10% drawdown above −30%. Backtests retain negative prices only with allow_nonpositive_prices: true. CLI users can resume a saved chat with its history. On main, for the next pip release.
2026-11-19 📄 Technical report published — The report describes how Vibe-Trading traces results to source data and runs, preserves research revisions, and enforces user-authorized limits on live trading. Vibe-Trading: Towards Agent-Native Trading
2026-11-18 📈 Taiwan equity backtests and execution fixes — TWSE (.TW) and TPEx (.TWO) stocks now support daily-bar backtests via Yahoo Finance. The Korea, Taiwan and Vietnam backtest engines use the simulated fill price, including extra slippage, to check daily price limits. Intraday backtest requests for these markets are rejected before fetching data. #2174 · #2175
Switching between listed sessions reuses the sidebar list. The bundled AKShare skill supports current and legacy endpoint names. Regression tests cover attachment filenames, configuration lookup order, and MCP market-data previews and artifact parts. On main, for the next pip release.
2026-11-17 📊 Portfolio risk details and reusable options analysis — Risk X-Ray adds observed drawdown periods and signed per-holding volatility contributions. Options Lab exports calculated snapshots as JSON and scenario grids as CSV, and diagnoses observed IV slices with explicit coverage limits; the diagnostics do not certify an arbitrage-free surface. Agent/MCP tools compare named option strategies on shared price and IV grids.
Fix malformed update metadata and failed upgrade verification, direct-mode model discovery, attachment filenames, missing-price handling and stale session-list responses. On main, for the next pip release.
2026-11-16 🛠️ More reliable reports, memory search and messaging — Shadow Account reports keep unmeasured P&L unavailable instead of showing zero, including cached HTML/PDF exports. Memory search repairs legacy indexes; partially failed PDF OCR is marked degraded.
Fix Signal pairing, preserve Napcat text when image metadata is malformed, narrow Anthropic temperature retries to the relevant validation error, and support current and legacy AKShare history endpoints. See CHANGELOG. On main, for the next pip release.
2026-11-15 📡 Unified market-data gateway and ready-to-use CSVs — Historical bars and US option snapshots share a local data gateway with source fallback, shared caching and bounded concurrency. Responses preserve source, currency and price-adjustment metadata, with explicit coverage and freshness information.
Agent market-data reads deliver CSVs alongside JSON. For supported requests naming instruments and one explicit YYYY-MM-DD range, the runtime constrains dates before acquisition; calculation warmup is requested separately, and existing indicator/backtest lookbacks remain available. On main, for the next pip release.
2026-11-14 🔌 Unified LLM gateway and version checks — Model providers now share one catalog and configuration layer across Agent, CLI, API and Swarm. Client settings stay isolated, native adapters respect explicit proxy settings, and cross-origin redirects are blocked before credentials or request bodies are forwarded.
Check for new versions from Web settings. Desktop gains support for signed updates with verification and recovery; distribution requires a configured update feed and publisher certificates. On main, for the next pip release.
2026-11-13 🛠️ Research delivery and calculation tools — Research answers stream without automatic numeric redaction, forced rewrites, or format-based completion gates. Interrupted committee runs preserve partial results and can resume unfinished roles while reusing completed work.
Full market-data references feed shell-free QuantLib calculations, and committee roles share source evidence. Options Lab and options_payoff calculate stock-plus-options strategies and compare multiple alternatives in one call, returning explicit costs, payoff bounds, and comparison directions. Effective backtest fees and truncation/error states remain explicit; live-trading authorization limits remain in place. Unreleased.
2026-11-12 🛠️ Backtest timing, report figures and research completion fixes — Shadow Account now uses the requested starting capital; token-truncated worker replies no longer count as completed. Committee PMs can synthesize valid upstream reports without fetching the same data again, and the native Anthropic adapter defaults to a configurable 16,384 output tokens. Generated strategies reject detected extra shifts on output targets unless explicitly declared intentional, while indicator lookbacks remain valid. Grounding now accepts supported magnitude spellings and precise observed declarations without weakening evidence checks. SPY/GLD backtests match an independent ledger on all 206/140 fills and total returns. Unreleased.
2026-11-11 🧾 Paper-trade partial fills and ledger reconciliation — Opt into per-order volume caps, partial fills and reported order states for A-share 5-minute paper simulations (#2128). Independently reconcile fees, cash, positions and NAV arithmetic from returned fills with the new paper_trade_reconcile Agent/MCP tool (#2197).
Correctly handle supported wrapped percentage headers and explicitly quoted document integers while preserving their source labels (#2185, #2192). Also fix strict factor benchmark inputs (#2195) and prevent timed-out channel turns from returning an earlier answer (#2194).
Thanks @shadowinlife, @he-yufeng, @Jackzigen and @divya0795! On main, for the next pip release.
2026-11-10 📊 Interactive IV surfaces and options analysis fixes — Edit strike/expiry IV grids in Options Lab, with observed/interpolated labels and no extrapolation (#2186).
Fix low-price presets, quantities, expiry dates, retries, language-switch loading and the 20-leg limit. Bare three-digit Zhengzhou contracts such as CF501 now use China futures rules (#2193).
Thanks @he-yufeng and @GPT-AGI! On main, for the next pip release.
2026-11-09 🧭 Export a selected revision comparison; backtests refuse codes they cannot place — Download the exact pair of research revisions you are comparing as JSON or Markdown from the Web, API or CLI (#2189). A backtest code no market rule recognises (such as local:BHP.AX or 7203.T) is now refused before any data is fetched instead of running on A-share rules; bare six-digit and .SS Shanghai codes still work. OpenRouter replies no longer show the model name twice (#2191), and an empty revision id in research-artifact export is now an error. Thanks @he-yufeng and @Gloubiboulgator! On main, for the next pip release.
2026-11-08 📝 Research revision comparison and full-history export — Compare content, evidence and metadata between any two revisions (#2168), and export the complete research history as JSON or Markdown (#2170). Switching research records now ignores stale responses, and Markdown exports preserve original content in isolated code blocks. Also fix missing factor weights, partial-return attribution, insufficient IC samples, non-finite valuation inputs and margin calculations for negative entry prices. On main, for the next pip release.
2026-11-07 🧪 Research Lab: trading costs and out-of-sample testing — Rerun saved price inputs under different fees and slippage; select parameters using training results only, then freeze them for out-of-sample tests and a separate final holdout. The Research Lab shares Web, CLI, API and Agent/MCP workflows, with all eleven UI languages. Also correct window-boundary returns and factor warmup/long-window calculations, and add 20 offline task-replay cases that keep missing evidence visible. Versioned research artifacts can now store structured financial facts (#2164), and bare Chinese futures contract codes resolve correctly (#2177). On main, for the next pip release.
2026-11-06 📈 Implied-volatility grids and paper-trading fixes — Build strike-by-expiry IV grids from supplied option observations, with observed/interpolated labels and no extrapolation (#2172). Extreme numeric inputs now produce finite results or explicit errors. A-share 5m market orders blocked by a price limit are canceled immediately (#2176); the matcher also processes symbols chronologically so later proceeds cannot fund earlier orders. On main, for the next pip release; public 5m requests still support one symbol per step.
2026-11-05 🚀 v0.1.19 released (Release notes, pip install -U vibe-trading-ai): research that outlives the chat — save versioned research artifacts with their evidence and revise them, reuse backtests from earlier turns and sessions, and edit a research goal in place. New opt-ins: a five-minute A-share paper simulation, and Gildata financial queries, stock screening and Shannon portfolio diagnosis (QVeris is removed; an existing GILDATA_TOKEN alone now enables nothing). Also Argentina (BYMA) backtests, Codex OAuth model discovery, and both 0.1.18 regressions fixed. 116 merged pull requests plus 21 landed through maintainer commits, from 26 contributors (CHANGELOG).
Fixed today: a backtest reports the benchmark it actually evaluated, long/short books get a risk x-ray, GTJA alpha 17 stays missing while its inputs warm up, the Shannon panel speaks all eleven UI languages, and two reviewed contributor fixes that had not landed are in (#2042 TTM sums across a missing quarter, #1985 3:2 split detection). Thanks @rudycelekli, @he-yufeng, @Jackzigen, @Shizoqua, @cgycorey, @dajiaohuang, @zeus229, @alexwan02, @BHhhh-123, @remote-controlled-man, @shadowinlife, @TWJxi, @lishuanghong1989-netizen, @TerryF7, @davidalmeida90, @DrDLyuan, @goatyyc, @hnq-ai, @kadyrbekovhamit-cyber, @MetaAviator, @octo-patch, @RowanAldean, @VectorPeak, @wavebyrd and @yufengsika!
On main after the release (next pip release): backtest benchmarks are bought at the first evaluated open, as the strategy is, instead of from the last warm-up close; excess return no longer includes that move (AAPL 20/60 SMA example: 22.5% → 18.4%).
2026-11-04 📊 Gildata financial queries, stock screening and Shannon portfolio diagnosis — Screen stocks by market cap and retrieve their half-year revenue in one request, or inspect portfolio factor exposures and each holding’s contribution to volatility. All nine Gildata features are opt-in, including for existing token holders. Free data sources never fall back to Gildata. #2117 · #2118 · #2119 Also clarified next-bar backtest fills, fixed false Swarm timeouts on Unicode heartbeats and sped up research artifact deduplication. #2137 · #2155 · #2159
2026-11-03 🛠️ Runtime integrity and localization follow-ups: Preserve U+2028/U+2029 inside trace, audit-ledger and session-search JSONL records, keep ledger appends valid after such payloads, normalize underscored model labels, and preserve handoff summaries during layer-2 compaction. Also accept BOM-prefixed frontmatter and keep the welcome surface aligned in RTL locales. Add regression coverage.
2026-11-02 🛠️ Frontmatter, result safety and welcome polish: Unquote quoted scalar metadata, fall back to a readable truncation when an oversized result cannot be encoded, and refine the welcome layout and featured cards. Add regression coverage.
2026-11-01 🛠️ Session timestamps, theme contrast and welcome interactions: Stamp session updates in UTC, keep dark-mode primary buttons legible, and make side-panel examples clickable with clear category labels. Add regression coverage.
2026-10-31 🛠️ Welcome and ticker parsing polish: Move the welcome surface to a warm paper palette and two-column layout, make featured examples and side-panel actions clearer, and stop trailing ticker letters from being interpreted as A-share or A/H constraints.
Vibe-Trading turns finance questions into research reports, runnable backtests and paper portfolios. You can also authorize a supported broker to execute live trades within a mandate you set and can halt. Your funds stay with the broker.
| Task | Where to start |
|---|---|
| Research markets, filings or uploaded documents | Ask in Web chat or attach a report. |
| Backtest a strategy or benchmark alphas | Inspect charts and trades in Run Detail, or compare factors in /alpha-zoo. |
| Simulate trading or replay a journal | Track daily fills and NAV in /paper-trading. Use /journal and /shadow in the CLI to review your trades. |
| Combine accounts or compare allocations | Open /portfolio for holdings and proposed allocation changes. Broker support |
| Explore options and correlations | Open /options for multi-leg payoffs and Greeks, or /correlation for market regimes. |
| Coordinate or repeat research | Run a Swarm team, assign work in Pixel Office or schedule a brief in /scheduled. |
| Revisit research with dated evidence | Search /research-artifacts, compare any two revisions, and export a full series or selected comparison as JSON or Markdown. Versioned research |
For image attachments, analyze_image accepts browser handles such as
uploads/<filename> (and legacy agent/uploads/<filename>), resolving them
under the runtime upload directory (~/.vibe-trading/uploads, or
$VIBE_TRADING_HOME/uploads when configured), independent of the service working
directory. Absolute image paths remain subject to the allowed-file-root checks.
Once you have run vibe-trading init, you can ask for a backtest in plain English or benchmark an existing alpha library from the terminal.
vibe-trading run -p "Backtest a BTC-USDT 20/50 moving-average crossover for 2024. Compare it with buy-and-hold and report maximum drawdown."
vibe-trading alpha bench --zoo gtja191 --universe csi300 --period 2018-2025 --top 20
Open Run Detail to compare the crossover with buy-and-hold, inspect the trades behind a drawdown and check the data source on the run card. In Strategy Comparison, drawdown is shown as a signed loss: a run at −10% fares better on this metric than one at −30%.
In backtests with allow_nonpositive_prices: true, a separately loaded benchmark uses the same price policy as the strategy. Local benchmark data still comes only from the configured local source.
In Run Detail > Portfolio Studio > Risk X-Ray, inspect the five deepest observed drawdowns, with peak, trough, recovery and duration. A drawdown still open at the end of the input window is reported separately even when it is outside the deepest five. The same drawdown.episodes data is saved in artifacts/risk_xray.json, summarized in artifacts/risk_xray.md, and returned by the portfolio_risk_xray Agent/MCP tool.
Risk X-Ray correlation summaries use only estimable pairs. A holding with constant returns does not hide correlations between other holdings; the average and strongest pair are unavailable when no pair can be estimated.
This is a constant-weight return model, not account NAV, strategy P&L or a forecast. Backtests use the average executed basket weights; the model itself does not include fees or cash flows. Duration counts observed bar intervals from peak to recovery, or to the window's end if unrecovered, not calendar days. Daily, weekly and monthly observations retain their original labels.
A missing interior return or non-positive/non-finite model wealth makes the periods unavailable, rather than an empty set or zero risk. Values within a relative 1e-12 of a running peak are treated as at that peak to avoid an extra recovery bar caused only by floating-point noise; smaller differences are not distinguished. The JSON report declares this as recovery_rtol. Existing scalar statistics and older reports without episode metadata remain supported.
| Step | In the crossover example |
|---|---|
| Plan | Identify the trading pair, date range, moving averages and benchmark from the prompt. |
| Ground | Fetch historical bars for BTC-USDT. Check the source and dates before interpreting the result. |
| Execute | Write the strategy and run the backtest. The run directory holds the strategy, trades and equity curve. |
| Validate | Compare the result with buy-and-hold. Inspect turnover, drawdown and validation warnings alongside return. |
| Revisit | Open the saved run or ask a follow-up with different parameters. You can also save a dated research conclusion and revise it when new evidence arrives. |
The loader supports 27 market-data sources. With source: "auto", it infers the market from the symbol and tries the configured sources in order. A backtest retries only symbols with no bars left after price validation and aggregation. An explicit local source or a local: symbol never falls back to the network.
| Market | How a request is filled |
|---|---|
| A-shares and Hong Kong | Start with Tencent. If it cannot supply the bars, try Eastmoney and then the remaining sources for that market. |
| US equities | Start with Yahoo. Sina is the next source in the chain. |
| Crypto | Try OKX, Binance and CCXT before falling back to other sources. |
| Futures | Chinese contracts can use AKShare or local bars. Supply local bars for global contracts. |
You can also choose a source explicitly. For example, installing vibe-trading-ai[ashare] adds the token-free BaoStock loader for daily A-share bars. The data source reference lists the full chains and credential requirements.
Yahoo 4H/4h requests aggregate hourly OHLCV into four-hour bars aligned to UTC midnight. Partial buckets are retained; empty buckets are omitted.
| Feature | What you can do |
|---|---|
| Filings and holdings | Compare a manager’s SEC 13F holdings across quarters, or look through an ETF to its underlying positions. Each holdings report carries its reporting date. |
| Company valuation | Use /dcf to see how a valuation changes with the discount rate and terminal growth. Use /comps for peer multiples, or build a linked three-statement model and export the results to Excel. |
| Papers and documents | Search arXiv and OpenAlex for a signal, inspect the authors’ definition, then test it on your own universe. Upload a filing, spreadsheet or slide deck for questions about a specific exhibit. |
| Stock screening | With Gildata enabled, screen companies by market cap and retrieve half-year revenue in one request. Screening and portfolio factor diagnosis each have their own opt-in. |
| Feature | What you can do |
|---|---|
| Alpha Zoo | Benchmark signals from Qlib, Alpha101, GTJA and the academic and fundamental libraries. Compare information coefficients across horizons, then check whether the result survives a walk-forward test. |
| Backtest engines | Model A-share price limits, crypto funding or futures margin. Use a shared capital pool for a cross-market strategy and inspect the individual fills behind its returns. The Run Detail factor attribution uses the saved opening-bar benchmark return when available. |
| Options Lab | Build a spread leg by leg. Save named alternatives to overlay their backend-computed expiry curves with distinct colors on the same spot axis, then compare return metrics. Select any two saved strategies to inspect their raw and baseline-relative spot × IV grids on one completed snapshot, using at most 201 spot points. Both strategies keep the shared stock position from that snapshot. Inspect the Greeks and see how each position responds to a change in spot price and implied volatility. Export the exact analysis request and result as JSON, or export the primary and saved-alternative expiry/scenario grids together with comparison outcomes as CSV. The options_strategy_compare Agent/MCP tool compares up to four strategies on a shared spot/IV grid with baseline-relative P&L. |
| Portfolio risk | Inspect drawdowns, estimate value at risk and expected shortfall, or use Brinson attribution to separate allocation from stock selection. Risk X-Ray reports each holding's signed contribution to portfolio volatility, including hedges that offset risk. The correlation view shows when markets start moving together. |
| Strategy tracking | Register a strategy with its evidence and track how its Sharpe ratio or factor information coefficient changes as new results come in. |
Risk X-Ray includes risk_contributions in the Agent tool response and saved JSON/Markdown reports. Components use weight × Cov(asset return, portfolio return) / portfolio volatility, with the same sample and annualization as total volatility. Each assets row names its symbol; risk_contribution is annualized decimal volatility and contribution_pct is in percentage points. They add up to total volatility, not portfolio return. A hedge can have a negative risk share, and another holding can exceed 100%; shares are unavailable for zero volatility or an insufficient sample. This is a historical weighted-basket diagnosis, not realized PnL attribution or a forecast.
| Feature | What you can do |
|---|---|
| Portfolio | Bring read-only broker holdings into one snapshot or import an extraETF export. Enter target weights to preview the value change for each holding. |
| Paper trading | Advance a saved account one trading day and inspect fills, cash and NAV. A separate five-minute A-share research step supports caller order IDs and a deterministic cancel schedule, with partial fills preserved. Cancellation timing and limits are explicit; this is not a live order session. The paper_trade_reconcile agent/MCP tool independently checks fees, cash, positions and NAV arithmetic without market or broker access. |
| Shadow Account | Import your broker’s trade journal, inspect fees and trading habits, then compare the actual trades with a rule-based replay. |
| Broker connections | Set up a connection in the CLI or Web and test it with a read. For supported live profiles, set symbol, order and exposure limits before enabling trading. The kill switch halts live activity. |
| Feature | What you can do |
|---|---|
| Swarm and Pixel Office | Run a bull–bear investment committee or a quant research desk and inspect the workers’ reports. In Pixel Office, assign a task to a teammate and record the result on the shared board. |
| Scheduled briefs | Start from a premarket brief, an earnings tracker or a portfolio checkup. Choose a schedule and send the report to a configured channel such as Slack, Telegram or email. |
| Research history | Search older sessions and reopen a saved run. Copy prompts or answers to the clipboard, save a dated conclusion with its evidence, and compare revisions when the investment case changes. |
| Run records | Inspect the data source, model, execution record and metric references behind a backtest. Reopen the saved trades and equity curve to check a reported figure. |
Read means a dedicated read-only profile. Sim means paper orders through a broker sandbox or local simulation. Live means live orders under a mandate.
Yes indicates a declared capability. A dash means no matching profile is declared.
| Broker | Read | Sim | Live |
|---|---|---|---|
| alpaca | Yes | Yes | Yes |
| binance | Yes | Yes | Yes |
| dhan | Yes | Yes | — |
| etoro | Yes | Yes | Yes |
| futu | Yes | Yes | Yes |
| ibkr | Yes | — | — |
| kis | Yes | Yes | — |
| longbridge | Yes | Yes | — |
| mstock | Yes | — | — |
| mt5 | Yes | Yes | Yes |
| okx | Yes | Yes | Yes |
| openalgo | Yes | — | — |
| robinhood | Yes | — | Yes |
| scalable | Yes | — | — |
| shoonya | Yes | Yes | — |
| tiger | Yes | Yes | Yes |
| toss | Yes | — | — |
| trading212 | Yes | — | — |
| upbit | Yes | Yes | — |
| zerodha | Yes | Yes | — |
| Web · From prompt to backtest | CLI · Interactive terminal |
|---|---|
|
https://github.com/user-attachments/assets/2c595ee1-c577-481a-9460-34ea12bcf41c |
https://github.com/user-attachments/assets/ac79426e-f3f7-4349-b0d5-d997a2725784 |
| Send a strategy request, follow the agent’s work and inspect the resulting run. | Browse the research playbooks and open the pre-market brief in the terminal. |
Terminal. Install the package with Python 3.11+, choose a model provider in the setup wizard, then open the interactive CLI.
pip install vibe-trading-ai
vibe-trading init
vibe-trading
Web app. Docker serves the frontend and API together at http://localhost:8899. From a fresh checkout, configure your provider before starting the container.
git clone https://github.com/HKUDS/Vibe-Trading.git
cd Vibe-Trading
cp agent/.env.example agent/.env
# Set your provider and API key in agent/.env.
docker compose up --build
The PyPI package includes the CLI, API and MCP server. For a frontend development setup or a local model, see the installation guide.
Start vibe-trading for the interactive terminal. Type /help at the prompt to browse commands or use these shortcuts during research.
| Command | Use it to |
|---|---|
/model | Switch the provider or model for the session. |
/history | Browse and resume a prior conversation. |
/show <run-id> | Inspect the results of a saved run. |
/pine | Export the current strategy as a Pine Script indicator. |
From the shell, vibe-trading alpha list browses the factor libraries and vibe-trading playbook list shows the scheduled research templates.
nifty100 benchmarks factors on current NIFTY 100 constituents (NSE, .NS symbols):
vibe-trading alpha bench --zoo alpha101 --universe nifty100 --period 2016-01-01/2025-09-30
Constituents and Industry labels come from NSE's official CSV, with the NSE Indices
mirror as fallback; if both fail, loading stops rather than substituting a list.
Membership is current, not point-in-time, so historical results are
survivorship-biased. Missing VWAP uses a labeled OHLC4 approximation. Provenance,
missing names and data gaps are recorded in the result's _meta.
/history./journal to analyze your exported trade history, then /shadow to compare your trades with a rule-based alternative.vibe-trading --swarm-run investment_committee '{"target":"TSLA","market":"US"}'
Start a local server with vibe-trading serve --port 8899. In a second terminal, run curl http://localhost:8899/runs to list saved runs. Use the returned ID with GET /runs/{run_id} to inspect its results.
| To run a research session over HTTP | Endpoint |
|---|---|
| Create the conversation | POST /sessions |
| Send the research question | POST /sessions/{id}/messages |
| Follow progress as it happens | GET /sessions/{id}/events |
Open http://localhost:8899/docs to try the endpoints interactively. Authenticated clients send the API key in the Authorization: Bearer header.
MCP clients can launch the same package over stdio. Add this entry to Claude Desktop’s claude_desktop_config.json, restart the client and call list_skills.
{
"mcpServers": {
"vibe-trading": { "command": "vibe-trading-mcp" }
}
}
For other clients or a custom output directory, see the MCP configurations.
Vibe-Trading is part of the HKUDS agent ecosystem:
|
NanoBot Ultra-Lightweight Personal AI Assistant |
AI-Trader Agent-Native Signal & Copy Trading Platform |
CLI-Anything Making All Software Agent-Native |
OpenSpace Self-Evolving AI Agent Skills |
ClawTeam Agent Swarm Intelligence |
| Area | Available now | Next |
|---|---|---|
| Paper trading | Daily accounts persist cash, fills and NAV between sessions. A separate simulation replays an A-share session in five-minute steps. | Opt-in volume-share matching (#2128, draft). |
| Research | Run cards record metrics and evidence for a completed backtest. Dated research artifacts keep revision history and are searchable. | Structured financial facts in research artifacts (#2164, in review). |
| Options Lab | Explore multi-leg payoffs, Greeks and spot × IV scenarios; edit IV grids and check observed slices for model-price inconsistencies at /options. | These checks do not calibrate or certify an arbitrage-free surface. |
Observed-slice diagnostics use your spot price and continuously compounded risk-free rate and dividend yield to reconstruct European call model prices. They check vertical spread bounds and butterfly convexity within each observed expiry, report incomplete or unavailable coverage, and show up to 20 findings without reducing the check counts. The grid is unchanged. Use the read-only quantlib_call function volatility.diagnose_iv_surface or POST /options/volatility-surface/diagnostics with the same observations and decimal rates. These are model-price checks, not executable quotes or trading advice.
See the model scope and example.
If you use Vibe-Trading in your research, please cite the technical report.
@misc{wu2026vibetradingagentnativetrading,
title = {Vibe-Trading: Towards Agent-Native Trading},
author = {Haozhe Wu and Zhonghang Li and Chao Huang},
year = {2026},
eprint = {2611.24845},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2611.24845},
}
Pick a good first issue or open an issue to discuss a larger change. The contributing guide covers local setup and checks to run before opening a pull request.
Thank you to everyone who has contributed to Vibe-Trading.
llm_usage (#2109), one tool policy across providers (#2087), Claude CLI tool-attempt recovery and structured finals (#2048/#2064/#2120), Qlib BETA/RESI/ROC/CORD semantics (#2062/#2069), magnitude suffixes in derived formulas (#2134), long/short risk x-ray and validation that refuses non-positive equity (#2162/#2161), and Unicode-safe swarm heartbeats (#2155).env read by the MCP server (#1974), and Futu US symbol mapping (#2076)=X forex symbols read as USD pairs (#1980)v0.1.18 · @warren618 (Haozhe Wu) shipped on-demand tool schemas, preserved large research results in run artifacts and fixed usage accounting for interrupted model calls.
current_price/ltp/market_val (#1581), the email SPF/DKIM spoofing check (#1508), and swarm artifacts cleared before each fresh task (#1455)loop.py (#1631), the first bar's result counted against initial capital in the options engine and per-bar returns (#1750/#1844), config keys nothing reads warned about (#1935), the US early-bell close on half-days (#1706), and the ReportLab fallback for Shadow Account PDFs (#1683)read_run_artifact and a structured backtest tool summary (#1647/#1646), get_southbound_flow and a northbound flow that no longer serves a silent empty envelope (#1486/#1484), guided Web UI setup for Feishu, Slack and Discord with runtime errors surfaced in channel status (#1572/#1764/#1777/#1738/#1737), and thirteen fundamental and valuation factors, industry-neutral A-share value alphas and a monthly-horizon IC bench (#1787/#1788/#1802/#1801)claude-cli provider backed by a local claude -p (#1804), Hong Kong orders sized on each symbol's own board lot (#1813), the Longbridge SDK config built through from_apikey (#1805), Futu multi-currency balances with average-cost basis (#1814), SDM registration that keeps its trading rules and records bench history for decay monitoring (#1848/#1849), a lightweight run preview built off the event loop (#1853), run trades listed newest first from the full trades.csv (#1865), trades.csv entry rows, offline benchmarks and Brinson weights fixed (#1780/#1781/#1782), and runtime connectors ordered by status (#1845)loop.py extractions for tool-result helpers, run outcome and tuning (#1636/#1641/#1678), a byte-stable system prompt for prefix caching (#1708), after-close SEC filings kept out of the IC until the next bar (#1794), a free BaoStock fallback for val:* panels (#1799), undefined correlation pairs published as null instead of 0.0 (#1933), journal PnL pooled per settlement currency (#1811), BASE-USDT-PERP routed to the crypto market (#1864), the mStock read-only profile (#1675), and the shared OHLCV contract assertion in per-loader suites (#1725)get_macro_series reporting when it caps a series (#1676), env-style credential names, URL userinfo and Basic auth redacted (#1765/#1742/#1744/#1846), and suffixed HK codes normalized for the duplicate-asset guard (#1746)loop.py (#1662), swarm presets that take their variables from the prompt (#1674, landed as a port), and the factor registry suite running without symlink privileges (#1696)=X forex pairs (#1930), and per-cent multipliers for ICE coffee, sugar and cotton (#1944)AttributeError (#1673)alpha bench / alpha compare CLI handlers (#1806)latest_date timestamps (#1590) and keeps corrections text-only (#1600); Argentina (.BA) market data through Yahoo (#1543), ISO-4217 portfolio currencies with isolated FX failures (#1510), explicit header names compared case-insensitively (#1568), technical-indicator volume statistics and their replay after compaction (#1571/#1601), and bounded read-only replay after compaction (#1488)run_dir confined to the workspace and worker message logs persisted on every terminal path (#1430/#1439), qlib158 CNTP/CNTN/CNTD NaN propagation (#1459), custom zoo roots that no longer replace the bundled module (#1468), get_shareholder_count answering again (#1490), Tencent's A-share and HK calibers stamped correctly (#1497)state.json written by the backtest tool so tool-driven runs are ingestible (#1413), per-worker swarm skill allowlists (#1414), the 1M interval no longer folding to one minute (#1487), and welcome quick actions with a real selected state (#1500)stop_all and WebSocket logger fixes carried over from #1521search_symbol (#1597), hash-only traces and citations on run cards (#1612), expired Copilot CLI tokens refreshed (#1619), and Telegram polling ownership documented (#1583)_NO_NETWORK_FALLBACK_SOURCES honoured for per-symbol gaps (#1441)x-opencode-session header OpenCode Go requires (#1416)Trigger.market default restored on non-market triggers (#1599)README_id.md (#1482).L) equity support (#1206), swarm replay/resume of failed runs keeping completed artifacts (#1158), market-data validation of codes, dates and sources with aligned FX/index search and fetch (#1185/#1316), dotted US class shares routed as US equity (#1351), backtest execution fixes — requested targets separated from executed fills, 1x shorts liquidated, option signals filled on the next bar, default IV for HV warm-up and over-committed baskets scaled (#1281/#1298/#1299/#1305/#1344); live halt-sweep envelopes, per-episode latches and MCP buy-limit sizing (#1244/#1254/#1361); grounding clause and metric-table gates (#1326/#1338/#1375/#1378); the registry NaN contract on declared dependencies (#1377); compaction sized by tool-call arguments (#1352); and report audits that fail closed when nothing was verified (#1362)_on_plan_rejected hook (#1245), the temperature self-heal on the OpenAI-compatible path (#1246), escalating stream retry delays that honour Retry-After (#1247), USD-M tolerance calibration (#1248), FMP's Stable endpoint with no silent fallback for an explicit source (#1276), adjusted prices on the FMP and Tiingo paths (#1320), and EPERM handled in desktop updater shutdown checks (#1284)extra_body.temperature stripped in the Anthropic self-heal (#1330), and an attempt start persisted so the elapsed clock survives navigation and reload (#1340)read_file and on GitHub (#1252/#1328), and strategy-store history that is really newest first (#1347)streamingSessionId cleared on reopen, a scrollable main region with collapsed long prompts, and non-backtest runs pointed to Studio (#1257/#1258/#1259)/mcp-public (#1178)/api routes proxied in the Vite dev server (#1319)HK.06693 → 06693.HK) locked in grounding (#1384)MARKET_DATA_ORDER_* (#1231)vibe-trading swarm retry with a resume option (#1194)ok/success tool-result envelopes (#1052) and truncates oversized results with the shared notice (#1110), MCP gains offset paging for SEC filings and statements (#1138), routes load_skill through the registry so oversized skills page (#1137) and carries market-data provenance on get_market_data (#1131), plus excess_return consistency (#1058), Wilder-EWM RSI (#1056), the FTS5 tokenizer floor (#1071), non-finite prediction-market fields (#1136), in-flight delivery protection (#1140) and preserved backtest validation evidence (#1139)xirr and money-weighted return survive long-horizon discount underflow (#1119), zero-volatility options discount their forward value (#1066), the fixed-income curve keeps decay inside the requested bounds (#1076), event studies anchor to the prior session (#1078) and cross-validation aligns label ends to the prior observation (#1079)ChatLLM closed to stop a pooled-connection leak (#1145) and the same for one-shot clients (#1153), gross_profit derived from revenue minus COGS when the SEC tag is absent (#1111), and vibe-trading show <run_id> dispatching its run id instead of the flag (#1147)Response for the scheduled-runs DELETE 204 (#1068)no_data (#1075), and strict alpha t-stats surfaced in the bench JSON and HTML report (#1085)write_file (#1144).VN no longer executes under China A-share rules (#1033)README_es.md, the sixth README (#1087)build_registry() reporting partial construction instead of silently returning a short tool list (#1129)connector orders rendering broker_sdk rows, with SDK enum reprs stripped and class-B tickers left intact (#1150).env.partial created with owner-only permissions (#1086)inf from zero equity (#958/#959/#1041), NaN/inf in the grounding block (#1043), null and non-finite tool arguments (#911/#913), and resource-leak and robustness fixes in the rate limiter, HTTP throttle, event bus, store and Shoonya connector (#1039/#1047/#1046/#1045/#1038)technical_indicators and sentiment tools (#921/#939), the final report aggregator stage for quant_strategy_desk (#1048), annualisation entries for 15 more data sources (#891), factor_analysis realigned on MCP to the registered tool's contract (#715), blank symbol rows skipped in the Futu and generic journal parsers (#749), loader payloads handled without sampling indicator inputs (#1005), and a real account label in CLI balances (#843)alpha bench --strict (#796), composable optimizer weight constraints (#818), rebalance notes and risk x-ray artifacts for portfolio runs (#795/#900), yfinance crypto routed to the crypto engine (#970), and memory entries written with their .md suffix (#984)trading_history numpy scalars made JSON-safe (#776)ok:false / success:false tool failures (#1028), importance decay in FTS5 memory ranking (#1032), remote server identity in the MCP specs cache key (#1049), and lowercase 4h requests resampled in the yfinance loader (#1013)alpha_bench (#979), and mapping-shaped Responses stream events accepted (#1034)bar_returns keeping the real move across a long trading halt (#895)connector CLI loading ~/.vibe-trading/.env (#902)alpha bench JSON and HTML output (#841)temperature=1 forced for the whole Kimi K-series (#701)temperature (#890)correlation-regime skill (#557), plus the academic_corr_rewire factor (#705)-PERP backtests zero-credential (#757)mt5 data source (#481)insertBefore streaming DOM-race fix (#717)_VALID_ZOOS whitelist (#707)account_number wiring (#726)local loader interval resampling (#467)OPENAI_BASE_URL provider-switch fix (#484, closes #482)EnvConfig stale-cache fix (#479, closes #477)api_server modularization capstone (1,103 → 371 lines, #424 closing #331), centralized env config with the AST CI gate (#440), loader fetch() protocol conformance (#437), and the Strategy Development Manager RFC in review (#455/#457) — 12 merged PRs this cycleIndiaEquityEngine, cost stack, .NS/.BO routing, and the india_broker bridge (#305)analyze_image vision tool (#464), NapCat DM pairing (#463), and the IM-media allowed-roots report (#465)value_investing_committee preset (#407/#408)setup/dev commands (#292) and dev-dependency pre-checks (#349)validation.json artifacts-dir fix (#429) and clearer --swarm-run errors (#428)trading_place_order (#417)resume <session-id> (#218)Vibe-Trading is research and trading software. It is not investment advice, holds no funds, and runs no execution venue. Trading through a broker channel you explicitly authorize (e.g. Robinhood Agentic Trading) happens only within the limits you set and which you can halt at any time. This broker-trading capability is experimental and not verified by us against a real broker account — use it at your own risk. Past performance does not guarantee future results.
MIT License — see LICENSE
GitHub checked 40h ago - refresh overdue. Recently viewed repositories target hourly refresh.