About Vibe Trading
Vibe Trading is an MCP server published by HKUDS in the Agents category: "Vibe-Trading: Your Personal Trading Agent". Conduid read 76 tools from its source: adapt_strategy, add_goal_evidence, alpha_bench, alpha_zoo, analyze_options, analyze_options_payoff and 70 more. It is published to PyPI as vibe-trading-ai and runs with uvx.
The repository has 39K stars and 6.4K forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.1.19 (5 Nov 2026): Rolls up 299 commits / 116 merged pull requests since 0.1.18, plus 21 pull requests whose work landed through maintainer commits, from 26 contributors. It follows v0.1.18 (21 Oct 2026), and the 5 most recent releases go back to v0.1.15 (9 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include binance, bitcoin, bse, coinbase, crypto and cryptocurrency.
Install
uvx vibe-trading-aipip install vibe-trading-aigit clone https://github.com/HKUDS/Vibe-TradingTools (76)
adapt_strategyPrepare a child from fresh adequate SDM evidence, preserving signal logic.| Parameter | Type | Description |
|---|---|---|
| config * | object | |
| name * | string | |
| position_sizing | string | |
| strategy_id * | string | |
| universe * | string |
add_goal_evidenceAppend traceable evidence to a finance research goal.| Parameter | Type | Description |
|---|---|---|
| artifact_hash | string | Required sha256 when artifact_path should verify evidence. |
| artifact_path | string | Artifact path. It verifies evidence only when allowed by path policy and paired with a matching sha256 hash. |
| assumptions | any | Structured assumptions. |
| benchmark | any | Benchmark symbols covered by the evidence. |
| caveat | string | Optional limitation note. |
| claim_id | string | Optional claim this evidence supports or contradicts. |
| confidence | string | Optional confidence label. |
| contradicts_claim_ids | any | Claim ids contradicted by this evidence. |
| criterion_id | string | Optional criterion this evidence satisfies. |
| data_as_of | string | ISO timestamp/date for data freshness. |
| evidence_type | string | Evidence category, default evidence. |
| expected_goal_id | string | Optional stale-write guard captured before the tool/model turn started. Defaults to goal_id. |
| goal_id | string | Optional goal id. Defaults to the current goal for this session. |
| method | string | Research method used. |
| run_id | string | Vibe-Trading run id. It verifies evidence only when the run directory exists. |
| session_id | string | Optional conversation id. Omit it unless the client tracks its own sessions; this server then uses one id per process. |
| source_provider | string | Data/provider name such as yfinance, OKX, tushare. Defaults to "agent_tool" when omitted. |
| source_type | string | Source category such as market_data, document, backtest. Defaults to "tool_note" when omitted. |
| source_uri | string | Optional source URL/path. |
| symbol_universe | any | Symbols covered by the evidence. |
| text * | string | Evidence note or result summary. |
| timeframe | string | Market timeframe. |
| tool_call_id | string | Source tool call id for traceability; it does not verify evidence by itself. |
alpha_benchBenchmark one Alpha Zoo alpha or a complete zoo on a universe.| Parameter | Type | Description |
|---|---|---|
| alpha_id | string | Optional single alpha id; mutually exclusive with ``zoo``. |
| horizon | integer | Forward-return horizon in bars (default 1 = next-bar). ``h > 1`` computes h-bar forward returns and samples IC rows non-overlapping (end-anchored); 21 ≈ monthly, the conventional horizon for fundamental factors. Range 1-252. |
| output_dir | string | Optional directory for the generated HTML report. |
| period * | string | ``YYYY-YYYY`` or ``YYYY-MM-DD/YYYY-MM-DD``. |
| research_mode | string | Declared mode; metadata only, not locked-evaluation enforcement. |
| research_stage | string | Stage recorded in the factor-research contract. |
| top | integer | Number of top-ranked alphas to include in the report. |
| universe * | string | Universe to benchmark, such as ``sp500`` or ``csi300``. |
| zoo | string | Optional zoo id; mutually exclusive with ``alpha_id``. |
alpha_zooBrowse the bundled Alpha Zoo registry.| Parameter | Type | Description |
|---|---|---|
| action * | string | ``list_alphas``, ``get_alpha``, or ``health``. |
| alpha_id | string | Alpha id required by ``get_alpha``. |
| limit | integer | Maximum number of alphas returned by ``list_alphas``. |
| theme | string | Optional theme filter for ``list_alphas``. |
| universe | string | Optional universe filter for ``list_alphas``. |
| zoo | string | Optional zoo filter for ``list_alphas``. |
analyze_optionsCalculate Black-Scholes option price and Greeks (Delta, Gamma, Theta, Vega).| Parameter | Type | Description |
|---|---|---|
| expiry_days * | integer | Days until expiration. |
| option_type | string | "call" or "put". |
| risk_free_rate | number | Annual risk-free rate (default 0.03 = 3%). |
| spot * | number | Current underlying price. |
| strike * | number | Strike price. |
| volatility | number | Annual volatility (default 0.25 = 25%). |
analyze_options_payoffAnalyze a multi-leg option strategy's payoff and spot/IV scenarios.| Parameter | Type | Description |
|---|---|---|
| alternatives | any | Named {label, legs} strategies on shared pricing assumptions; returns their calculations and cap/floor/cost comparisons in this call. |
| commission_rate | number | Entry commission fraction, aligned with the options backtest engine. |
| entry_spot * | number | Positive underlying spot at entry. |
| expiry_days * | number | Non-negative calendar days to expiry. |
| expiry_spot_values | any | Exact non-negative expiry scenario prices for P&L and returns. |
| label | string | Name of the base strategy. |
| legs * | any | Option leg objects with ``option_type`` (call/put), positive ``strike``, signed integer ``qty``, and optional per-share ``premium``. Positive quantity is long; negative is short. |
| multiplier | number | Currency multiplier per option price unit. |
| price_as_of | string | Observation date for the entry price. |
| risk_free_rate | number | Annual continuously compounded risk-free rate. |
| scenario_iv_values | any | Optional positive annualized IV scenarios. Omit for 50%, 75%, 100%, 125%, and 150% of entry volatility. |
| spot_max | number | Optional chart/scenario upper bound above ``spot_min``. |
| spot_min | number | Optional non-negative chart/scenario lower bound. |
| spot_points | integer | Display-grid size from 21 through 501. |
| underlying_qty | number | Signed stock units per multiplier, 1 for a covered collar. |
| volatility | number | Annualized entry volatility, e.g. 0.3 for 30%. |
analyze_trade_journalAnalyze a user's trade journal (CSV/Excel broker export) and return| Parameter | Type | Description |
|---|---|---|
| analysis_type | string | "full" | "profile" | "behavior" | "strategy". |
| file_path * | string | Absolute path to the uploaded CSV/Excel file. |
| filter_expr | string | Optional filter (e.g. "2026-01 to 2026-03", "symbol=600519.SH", "market=china_a"). |
backtestRun a vectorized backtest using config.json and code/signal_engine.py.| Parameter | Type | Description |
|---|---|---|
| run_dir * | string | Path to the run directory containing config.json and code/. |
cancel_swarmRequest cooperative cancellation by the run ID returned by run_swarm.| Parameter | Type | Description |
|---|---|---|
| run_id * | string |
compare_options_strategiesCompare up to four option strategies on one deterministic spot/IV grid.| Parameter | Type | Description |
|---|---|---|
| baseline_index | integer | |
| commission_rate | number | |
| entry_spot * | number | |
| expiry_days * | number | |
| multiplier | number | |
| risk_free_rate | number | |
| scenario_iv_values | any | |
| spot_max | number | |
| spot_min | number | |
| spot_points | integer | |
| strategies * | any | |
| underlying_qty | number | |
| volatility | number |
extract_shadow_strategyExtract a Shadow Account profile (3-5 human-readable if-then rules)| Parameter | Type | Description |
|---|---|---|
| journal_path * | string | Path to the CSV/Excel broker export. |
| max_rules | integer | Maximum rules to return (typically 3-5). |
| min_support | integer | Minimum profitable roundtrips required to back one rule. |
factor_analysisCompute factor IC/IR analysis and layered backtest from prepared CSVs.| Parameter | Type | Description |
|---|---|---|
| factor_csv * | string | Path to factor values CSV (index=date, columns=codes). |
| n_groups | integer | Number of quantile groups (default 5). |
| output_dir * | string | Directory for output files (ic_series.csv, ic_summary.json, group_equity.csv). |
| return_csv * | string | Path to returns CSV (same structure as factor_csv). |
get_block_tradesFetch recent A-share block trades (大宗交易) for one symbol (Eastmoney).| Parameter | Type | Description |
|---|---|---|
| code * | string | A-share symbol with exchange suffix, e.g. "600519.SH", "830799.BJ". |
| days | integer | Lookback window in calendar days ending today. |
get_cn_announcementsSearch Chinese-market announcements (公告): A-share, HK and fund filings.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum rows returned. |
| query * | string | Natural-language announcement request, e.g. "贵州茅台2024年年度分红公告". |
get_cn_macro_seriesFetch China macro / regional / industry economic indicator series (宏观 EDB).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum rows returned. |
| query * | string | Natural-language indicator request, e.g. "2024年中国月度CPI同比". |
get_dragon_tigerFetch the A-share dragon-tiger board (龙虎榜) for a trade date (Eastmoney).| Parameter | Type | Description |
|---|---|---|
| code | string | Optional A-share symbol or bare code (e.g. "600519.SH" or "600519"). |
| date * | string | Trade date in YYYY-MM-DD format (e.g. 2024-01-02). |
get_financial_statementsFetch a stock's financial statements or key per-period indicators.| Parameter | Type | Description |
|---|---|---|
| code * | string | Single symbol with a market suffix (e.g. "600519.SH", "AAPL.US"). |
| offset | integer | Index of the first period to return, newest first; defaults to 0. Periods are returned whole and only as many as fit one response — read paging.total and paging.next_offset and call again with that offset to continue. |
| period | string | "annual" or "quarter". |
| statement | string | "balance", "income", "cashflow", or "indicators". |
get_fund_flowFetch order-bucket net capital inflow (main/super-large/large/medium/small).| Parameter | Type | Description |
|---|---|---|
| codes * | any | Symbols with market suffix, e.g. ["600519.SH", "00700.HK"]. |
| days | integer | For period="daily", number of most-recent daily bars to keep. |
| period | string | "daily" (daily net-inflow history) or "min" (per-minute line). |
get_fund_navFetch daily NAV history for Chinese off-exchange funds (场外基金).| Parameter | Type | Description |
|---|---|---|
| end_date | string | Inclusive window end, YYYY-MM-DD. Omit through the latest published NAV. |
| funds * | any | Fund codes, e.g. ["110022", "000198.OF"]. |
| limit | integer | Maximum number of most-recent rows per fund. |
| start_date | string | Inclusive window start, YYYY-MM-DD. Omit for the vendor's default history window. |
get_lockup_expiryFetch Chinese A-share lockup-expiry (restricted-share unlock, 限售解禁) data.| Parameter | Type | Description |
|---|---|---|
| code | string | A-share symbol (e.g. "600519", "600519.SH"). Omit for a market-wide upcoming-unlock calendar. |
| horizon_days | integer | Upcoming-unlock window in days for the market-wide calendar; ignored when ``code`` is given (full history is returned). |
get_macro_seriesFetch a FRED macroeconomic time series from the St. Louis Fed.| Parameter | Type | Description |
|---|---|---|
| end_date | string | Inclusive window end, YYYY-MM-DD. Omit for the latest date. |
| limit | integer | Maximum number of most-recent observations to return (max 5000). A series longer than that is capped and says so in the result: truncated, observations_available, and a hint. The shared character budget may return fewer rows; count reports delivered rows. |
| series_id * | string | FRED series identifier (e.g. "CPIAUCSL", "UNRATE"). |
| start_date | string | Inclusive window start, YYYY-MM-DD. Omit for full history. |
get_margin_tradingFetch an A-share stock's daily margin-trading (融资融券) balances (Eastmoney).| Parameter | Type | Description |
|---|---|---|
| code * | string | A-share code: bare ("600519"), suffixed ("600519.SH"), or exchange-prefixed ("sh600519"). |
| days | integer | Number of most-recent trading days to return. |
get_market_dataFetch OHLCV market data for stocks, crypto, or mixed symbols.| Parameter | Type | Description |
|---|---|---|
| adjustment | string | Omit for each source's default price caliber; "raw" returns only unadjusted (不复权) bars from sources that can serve them, else an error. |
| codes * | any | List of symbols (e.g. ["AAPL.US", "TD.TO", "BTC-USDT", "000001.SZ"]). |
| end_date * | string | End date (YYYY-MM-DD). |
| export_csv | boolean | Save a CSV by default from the same returned rows, with provenance, sampling flags, columns, row count and checksum. No extra fetch. |
| interval | string | Bar size (1m/5m/15m/30m/1H/4H/1D/1W/1M, default "1D"; 1W and 1M are built from daily bars). |
| max_rows | integer | Per-symbol row cap (default 250) so the response stays within the MCP token budget. A symbol exceeding it returns an even-stride downsample (every step-th bar, last bar pinned) plus truncation metadata. Set max_rows=0 for all rows (unbounded, legacy behavior). |
| run_dir | string | Calculation workspace; defaults to runtime runs/mcp-calculations and returns a full result reference. |
| source | string | Data source. Prefer ``auto``; ``yahoo``/``yfinance`` serve Canada, US, and HK equities. |
| start_date * | string | Start date (YYYY-MM-DD). |
| warmup_start_date | string | Optional calculation-history start before start_date. Returned rows include this prefix; start_date remains the analysis start. |
get_northbound_flowFetch Northbound (Stock-Connect) net capital flow for China A-shares.| Parameter | Type | Description |
|---|---|---|
| lookback_days | integer | Trailing trading days of daily net-inflow history to return. |
get_options_chainFetch the US-listed options chain (calls and puts) for one expiration.| Parameter | Type | Description |
|---|---|---|
| expiration | integer | Optional expiration as Unix epoch seconds (one of the returned expirations). Omit for the nearest expiration. |
| near_spot_count | integer | Optional nearest strikes per side (1..60), incompatible with offset. |
| offset | integer | Optional strike-order page offset, 60 rows per side; omit for near-spot contracts. |
| ticker * | string | US underlying symbol (e.g. "AAPL" or "AAPL.US"). |
get_research_goalReturn the current finance research goal snapshot for a session.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Optional conversation id. Omit it unless the client tracks its own sessions; this server then uses one id per process. |
get_research_reportsFetch mainland A-share sell-side research coverage and consensus forecasts.| Parameter | Type | Description |
|---|---|---|
| beginTime | string | Earliest report publish date (inclusive), 'YYYYMMDD'. Optional; defaults to the start of a trailing two-year window. |
| code * | string | A-share symbol in <code>.<exchange> form (SH/SZ/BJ). |
| endTime | string | Latest report publish date (inclusive), 'YYYYMMDD'. Optional; defaults to today. |
| limit | integer | Maximum number of most-recent research reports to return. |
get_run_resultGet the final report and task summaries of a swarm run.| Parameter | Type | Description |
|---|---|---|
| run_id * | string | The run ID returned by run_swarm. |
get_sec_filingsFetch U.S. SEC EDGAR filings or reported XBRL financials for a company.| Parameter | Type | Description |
|---|---|---|
| accession_number | string | Select one recent filing and read citable HTML excerpts. |
| form | string | Optional SEC form type filter (e.g. "10-K", "10-Q", "8-K"). |
| item | string | Within the selected filing, read a specific SEC item such as "1A". |
| limit | integer | Maximum filings or metric points, or up to four passages per document page. |
| metric | string | Optional XBRL us-gaap concept name (e.g. "Revenues"). |
| offset | integer | Zero-based index in the filing list or in the selected document's passages. Follow paging.next_offset with the same accession and item. |
| ticker * | string | U.S. equity ticker, case-insensitive (e.g. "AAPL"). |
get_sector_infoLook up Chinese A-share sector / concept board info (Eastmoney, no auth).| Parameter | Type | Description |
|---|---|---|
| code | string | A-share stock symbol with market suffix. Required when mode="membership"; ignored when mode="ranking". |
| limit | integer | For mode="ranking", number of top boards to return. |
| mode | string | "membership" (default) or "ranking". |
get_shareholder_countFetch mainland A-share shareholder count history (股东户数) (Eastmoney).| Parameter | Type | Description |
|---|---|---|
| code * | string | A-share symbol in <code>.<exchange> form (SH/SZ/BJ). |
| max_periods | integer | Maximum number of most-recent report periods to return. |
get_southbound_flowFetch Southbound (Stock-Connect) net capital flow into Hong Kong equities.| Parameter | Type | Description |
|---|---|---|
| lookback_days | integer | Trailing trading days of daily net-buy history to return. |
get_stock_newsFetch recent financial news headlines, read-only and no auth.| Parameter | Type | Description |
|---|---|---|
| code | string | Symbol whose news to fetch (e.g. "600519.SH", "AAPL.US"). Required when scope="stock"; ignored when scope="global". |
| limit | integer | Maximum number of headlines to return. |
| scope | string | "stock" (default) or "global". |
get_stock_profileFetch a read-only company profile for a US, HK, or UK (LSE .L) listing (Yahoo Finance).| Parameter | Type | Description |
|---|---|---|
| sections | any | Profile sections to return, any of: key_stats, financials, earnings_trend, institution_ownership, insider_holders, recommendation_trend. Defaults to all sections. |
| ticker * | string | US (bare or .US suffix), HK (zero-padded .HK code), or UK (LSE .L, e.g. VOD.L) symbol. |
get_strategy_evidenceReturn the computed per-regime evidence rows for one strategy.| Parameter | Type | Description |
|---|---|---|
| regime | string | Optional regime filter — "bear_market", "bull_market", or "structural". Omit for every regime with evidence. |
| strategy_id * | string | Strategy identifier from list_strategies or query_strategies. |
get_swarm_statusGet the current status of a swarm run.| Parameter | Type | Description |
|---|---|---|
| run_id * | string | The run ID returned by run_swarm. |
history_dataPlan/resume quota-bounded routed historical datasets; read unsampled pages.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| codes | array | |
| end_date | string | |
| interval | string | |
| job | string | |
| offset | integer | |
| source | string | |
| start_date | string |
iwencai_searchRun a natural-language A-share research query against iWenCai (问财).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum securities to return. |
| query * | string | Natural-language research question (Chinese phrasing yields the best parse, e.g. "市盈率低于15的银行股"). |
list_backtest_runsList earlier backtest runs (newest first, paged) so their artifacts can be read, not re-run.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Runs per page [1, 20] (default 5). |
| offset | integer | Runs to skip; use ``next_offset`` from the previous page. |
| run_id | string | Only this bare run directory name. |
| scope | string | "all" (default) or "session". |
list_runsList recent swarm runs sorted by creation time (newest first).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of runs to return (default 20). |
list_skillsList all available finance skills with names and descriptions.list_strategiesList discoverable strategies across the Alpha Zoo and the SDM strategy store.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of strategies to return (default 20). |
| offset | integer | Pagination offset for stable browsing (default 0). |
| source | string | Optional source filter — "alpha_zoo" or "sdm". Omit to browse both sources. |
list_swarm_presetsList available swarm multi-agent team presets.load_skillLoad documentation for a named finance skill.| Parameter | Type | Description |
|---|---|---|
| name * | string | Skill name (e.g. 'strategy-generate', 'risk-analysis', 'technical-basic'). |
| offset | integer | Optional character offset to resume a long section/document from. |
| section | string | Optional section title to expand (see the skeleton's outline). |
paper_trade_reconcileIndependently reconcile a paper-trading result without market or broker access.| Parameter | Type | Description |
|---|---|---|
| account_state * | any | Initial ``{cash, positions}`` ledger supplied to the step. |
| result * | any | Successful ``paper_trade_step`` document to audit. |
paper_trade_stepRun one step of the deterministic paper-trading matching engine; never places real orders.| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account identifier, echoed verbatim in the result. |
| account_state * | any | RM-injected ledger snapshot ``{cash, positions:[{symbol, qty, avg_cost}]}``. Hashed raw for ``received_state_hash``. |
| cancel_schedule | any | Optional pt-v1.4 ``[{order_id, at}]`` for single-day 5m cn_a orders mode. Times are same-day five-minute session boundaries in ``YYYY-MM-DDTHH:MM:00+08:00``. Cancels precede same-label matching, stop further fills as pending_cancel and settle at day end. Omitted or null keeps the legacy model; [] selects v1.4. No broker writes. |
| fee_model | any | Optional per-key fee overrides merged over the market defaults (AM-4-3: RM always injects it explicitly). |
| fill_model | string | Optional fill model — ``all_or_none`` (default) or ``volume_share`` (pt-v1.3; requires ``interval='5m'`` and cn_a). |
| from_date * | string | Inclusive range start ``YYYY-MM-DD``. Orders mode requires ``from_date == to_date`` (single day); multi-day ranges are strategy_path mode only. |
| interval | string | Optional pt-v1.2 bar interval — ``1d`` (default) or ``5m``; ``5m`` is cn_a-only. |
| market * | string | One of ``cn_a`` / ``hk`` / ``us`` — selects the frozen rule set. |
| order_volume_ratio | number | Optional pt-v1.3 per-order share of available volume, ``0 < r <= 1``; only with ``fill_model='volume_share'``. Omitted means 1.0. |
| orders | any | Orders-mode array of ``{symbol, side, qty, limit?, order_id?}``. Non-null ids select v1.4 (single-day 5m cn_a only). Exactly one of ``orders`` / ``strategy_path`` must be given; an empty array is the zero-order pure-valuation path. |
| path_model | string | Optional pt-v1.2 reference-price model — ``bar_median`` (default) or ``bar_close``; ignored for ``1d``. |
| session | string | Optional pt-v1.2 session selector — ``auto`` (default) or ``cn_a``; ``cn_a`` requires market ``cn_a``. |
| strategy_path | string | Strategy mode — path to an AST-hardened strategy whose per-day orders are matched. Exactly one of ``orders`` / ``strategy_path``. |
| to_date * | string | Inclusive range end ``YYYY-MM-DD`` (the target trading day). |
pattern_recognitionDetect technical chart patterns (head-and-shoulders, double top/bottom,| Parameter | Type | Description |
|---|---|---|
| run_dir * | string | Path to run directory containing artifacts/ohlcv_*.csv. |
query_strategiesQuery strategies whose computed per-regime evidence passes the filters.| Parameter | Type | Description |
|---|---|---|
| cost_feasible | boolean | Keep only strategies that pass the sizing-corrected cost-breakeven screen (default True). |
| include_stale | boolean | Also keep rows whose evidence window is stale (default False). Stale rows fail closed out of default recommendations; True inspects them with their stale-evidence: warnings, sorted after non-stale rows. Relaxes the staleness gate only. |
| limit | integer | Maximum number of strategies to return (default 10). |
| min_evidence_quality | string | Minimum evidence quality to keep — "adequate" (default), "marginal", "insufficient", or "any". "any" only removes the quality floor; rows must still pass the other filters (min_trades, cost_feasible, min_sharpe) to be kept. |
| min_sharpe | number | Optional minimum Sharpe on the per-regime evidence rows. |
| min_trades | integer | Minimum executed-trade count for evidence to count (default 10; fewer trades reads as insufficient evidence). |
| regime | string | Optional market-regime filter — "bear_market", "bull_market", or "structural". Omit to query across all regimes. |
read_documentExtract text from a PDF document with OCR fallback for scanned pages.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Absolute path to the PDF file. |
read_fileRead the contents of a file, or one value of a JSON file.| Parameter | Type | Description |
|---|---|---|
| char_offset | integer | Optional position within the first line. Use next_char_offset when returned. |
| limit | integer | Optional maximum number of returned lines, applied after selection. |
| offset | integer | Zero-based first line of the file or JSON selection. Use next_offset to continue. |
| path * | string | File path to read. |
| pointer | string | Optional RFC 6901 JSON pointer selecting a field or array item of a JSON file; a pointer that names no value is an error, never the whole file. |
read_run_artifactRead a backtest run artifact as structured JSON instead of raw CSV text.| Parameter | Type | Description |
|---|---|---|
| artifact * | string | Alias name or manifest-listed relative path (see above); anything else — including path traversal — is refused. |
| columns | any | Optional column projection; unknown names are refused with the valid list. |
| format | string | "rows" (default), "downsample" or "meta". |
| max_rows | integer | Page size [1, 5000] (default 1000); samples retain at least two endpoints. |
| offset | integer | First row index for "rows" mode (default 0). |
| run_dir * | string | Run directory a backtest/tool call returned. |
read_urlFetch a web page and convert it to clean Markdown text.| Parameter | Type | Description |
|---|---|---|
| url * | string | Target URL to read. |
reap_stale_runsMark every ``running`` run whose host process died as ``failed``.refresh_strategy_evidenceRebuild the strategy-discovery evidence cache from backtest run artifacts.| Parameter | Type | Description |
|---|---|---|
| manifest_path | string | Path to the JSON manifest file (see above). |
| runs | array | Inline run specs (see above). |
| scope | string | all replaces the whole cache; strategies updates successful named strategies only. |
render_shadow_reportRender the Shadow Account HTML/PDF report (8 sections + charts) for| Parameter | Type | Description |
|---|---|---|
| include_today_signals | boolean | Include today's market scan section. |
| journal_path | string | Original journal path (for attribution), optional. |
| shadow_id * | string | Shadow Account ID. |
| window_end | string | Optional backtest window override. |
| window_start | string | Optional backtest window override. |
research_labRun sealed cost/OOS experiments, factor audits, or offline task replay.| Parameter | Type | Description |
|---|---|---|
| action * | string | catalog, show, cost_sensitivity, walk_forward, factor_audit, replay. |
| request | object | Shared Research Lab request; catalog lists available inputs. |
retry_runRetry a failed, stale, or cancelled swarm run.| Parameter | Type | Description |
|---|---|---|
| resume | boolean | Replay the failed/cancelled subgraph instead of re-running the whole preset. Default ``False`` preserves the existing full re-run. |
| run_id * | string | ID of the run to retry (from ``list_runs`` / ``get_swarm_status``). |
run_shadow_backtestRun a multi-market backtest (A股/港股/美股/crypto) on a Shadow Account| Parameter | Type | Description |
|---|---|---|
| journal_path | string | Original journal path (enables attribution), optional. |
| markets | any | Subset of ["china_a", "hk", "us", "crypto"], default all four. |
| shadow_id * | string | ID returned by extract_shadow_strategy. |
| window_end | string | ISO date, default today. |
| window_start | string | ISO date, default today-1y. |
run_swarmRun a swarm multi-agent team and stream progress back to the caller.| Parameter | Type | Description |
|---|---|---|
| preset_name * | string | Swarm preset name (e.g. 'investment_committee', 'quant_strategy_desk'). |
| start_only | boolean | If True, kick off the run and return immediately with ``run_id`` + current status. Ignores ``wait_seconds``. |
| variables * | any | Required variables for the preset (e.g. {"target": "AAPL.US", "market": "US"}). |
| wait_seconds | integer | Maximum seconds to keep the MCP call open. Default 3600 (1 hour); the progress-notification keepalive means the transport stays connected for the full budget. |
scan_shadow_signalsList today's symbols that match the Shadow Account's entry cadence| Parameter | Type | Description |
|---|---|---|
| date | string | ISO YYYY-MM-DD target date, default today. |
| per_market | integer | Max signals per market. |
| shadow_id * | string | Shadow Account ID. |
screen_marketScreen a market's listed instruments and rank the top names by a metric.| Parameter | Type | Description |
|---|---|---|
| market * | string | Market universe: "a", "us", or "hk". |
| sort_by | string | Ranking metric (descending): "change_pct", "volume", "amount", or "turnover". |
| top_n | integer | Number of top-ranked instruments to return. |
search_broker_reportsSearch sell-side broker research (券商研报) over the Juyuan library.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum rows returned. |
| query * | string | Natural-language research request, e.g. "最近三个月白酒行业的券商研报观点". |
search_symbolResolve a company name or ticker fragment to candidate trading symbols.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of merged candidates to return. |
| query * | string | Free-text company name or ticker fragment (Chinese or English). |
| refresh | boolean | Request resolver verification instead of session identity reuse. |
start_research_goalCreate or replace the current finance research goal for a session.| Parameter | Type | Description |
|---|---|---|
| criteria | any | Optional checklist. Defaults to the MVP finance protocol. |
| objective * | string | Research-only objective, not a trade execution request. |
| protocol | string | Research protocol name. Defaults to thesis_review. |
| risk_tier | string | One of the supported non-execution risk tiers. |
| session_id | string | Optional conversation id. Omit it unless the client tracks its own sessions; this server then uses one id per process. |
| time_budget_seconds | integer | Optional wall-clock budget. |
| token_budget | integer | Optional token budget. |
| turn_budget | integer | Optional turn budget. |
| ui_summary | string | Optional compact label for UI surfaces. |
trading_accountRead account data from the selected trading connector profile.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | Optional local connection id whose OS-vault credentials are used. |
| host | string | Optional local host override. |
| port | integer | Optional local socket port override. |
trading_checkCheck whether a trading connector profile is configured and reachable.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | Optional local connection id whose OS-vault credentials are used. |
| host | string | Optional local host override. |
| port | integer | Optional local socket port override. |
trading_connectionsList selectable trading connector profiles.trading_historyRead historical bars from the selected trading connector profile.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| bar_size | string | IBKR bar size, default 1 day. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | |
| currency | string | Contract currency, default USD. |
| duration | string | IBKR duration string, default 30 D. |
| exchange | string | Exchange routing, default SMART. |
| host | string | Optional local host override. |
| limit | integer | Number of bars for SDK connectors. |
| period | string | Bar interval for SDK connectors (broker_sdk): 1m/5m/1h/1d/1w. |
| port | integer | Optional local socket port override. |
| sec_type | string | Security type, default STK. |
| symbol * | string | Symbol such as AAPL. |
| use_rth | boolean | Use regular trading hours. |
| what_to_show | string | Data type, default TRADES. |
trading_ordersRead open orders from the selected trading connector profile.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | |
| host | string | Optional local host override. |
| include_executions | boolean | Include recent executions when available. |
| port | integer | Optional local socket port override. |
trading_positionsRead positions from the selected trading connector profile.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | Optional local connection id whose OS-vault credentials are used. |
| host | string | Optional local host override. |
| port | integer | Optional local socket port override. |
trading_quoteRead a quote snapshot from the selected trading connector profile.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional account code filter. |
| client_id | integer | Optional local client id override. |
| connection | string | Optional profile id. Defaults to the selected profile. |
| connection_id | string | |
| currency | string | Contract currency, default USD. |
| exchange | string | Exchange routing, default SMART. |
| host | string | Optional local host override. |
| port | integer | Optional local socket port override. |
| sec_type | string | Security type, default STK. |
| symbol * | string | Symbol such as AAPL. |
trading_select_connectionSelect the default trading connector profile for later trading_* calls.| Parameter | Type | Description |
|---|---|---|
| connection * | string | Profile id, e.g. ``ibkr-paper-local`` or ``robinhood-live-mcp``. |
update_research_goalEdit the current research goal without discarding criteria or evidence.| Parameter | Type | Description |
|---|---|---|
| expected_goal_id | string | Optional stale-write guard, defaulting to goal_id. |
| goal_id | string | Optional current goal id. |
| objective | string | Replacement objective; omit to keep the current text. |
| session_id | string | Optional conversation id; defaults to this MCP connection. |
| ui_summary | string | Replacement display summary; omit to keep it. |
update_research_goal_statusUpdate a finance research goal status after an audit.| Parameter | Type | Description |
|---|---|---|
| audit | any | Optional list of criterion audit rows. |
| expected_goal_id | string | Optional stale-write guard captured before the tool/model turn started. Defaults to goal_id. |
| goal_id | string | Optional goal id. Defaults to the current goal for this session. |
| recap | string | Optional concise status recap. |
| session_id | string | Optional conversation id. Omit it unless the client tracks its own sessions; this server then uses one id per process. |
| status * | string | Goal lifecycle status, e.g. complete, cancelled, blocked. |
web_searchSearch the web with configured providers and free search engines.| Parameter | Type | Description |
|---|---|---|
| max_results | integer | Maximum results to return (default 5, max 10). |
| query * | string | Search query string. |
write_fileWrite content to a file. Used to create config.json and signal_engine.py| Parameter | Type | Description |
|---|---|---|
| content * | string | File content to write. |
| path * | string | File path (relative to workspace or absolute). |
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 12K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by frontend/package-lock.json and 2 more.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 12K words, fetched 7 days ago. The original in the repository is authoritative.
Read full README