Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(loaders): retire mootdx from the default A-share chain and health canary

Yufeng Heef753351150b
diff --git a/.github/workflows/loader-health.yml b/.github/workflows/loader-health.yml
index 38daf72d7..46609dc9e 100644
--- a/.github/workflows/loader-health.yml
+++ b/.github/workflows/loader-health.yml
@@ -23,8 +23,8 @@ jobs:
python-version: '3.11'
cache: pip
- name: Install isolated public-source dependencies
- # mootdx requires an older httpx than the application; do not install
- # these optional SDKs into the application's dependency environment.
+ # These optional SDKs are pinned tighter than the application's stack;
+ # do not install them into the application's dependency environment.
run: |
python -m venv "$RUNNER_TEMP/loader-health-venv"
"$RUNNER_TEMP/loader-health-venv/bin/python" -m pip install -r tools/requirements-loader-health.txt
diff --git a/README.md b/README.md
index b359b3ac8..01f30ca52 100644
--- a/README.md
+++ b/README.md
@@ -573,7 +573,8 @@ One `get_market_data` call, **28 market-data sources**, one of them the optional
| Source | Markets | Auth | Role |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | none | never IP-banned (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | none | never IP-banned |
+| `mootdx` | A-share (explicit-only) | none | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / US / HK | none | OHLCV + deep fundamentals & flow tools (throttled) |
| `baostock` · `akshare` | A (+ US/HK/futures/macro/fx) | none | free fallbacks |
| `tushare` | A / HK / futures / fund / macro | token | richest A-share |
@@ -595,7 +596,7 @@ One `get_market_data` call, **28 market-data sources**, one of them the optional
**Fallback chains (by IP-ban risk):**
-- **A-share** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A-share** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **US** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **HK** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **India (NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -1000,7 +1001,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **Supported LLM providers:** OpenRouter, OpenAI, Anthropic (native Messages API), DeepSeek, OpenCode (Go / Zen), Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, Novita AI, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama (local). When no `*_BASE_URL` is set, each provider falls back to its canonical endpoint, so just a key is enough. See `.env.example` for config.
-> **Tip:** All markets work without any API keys thanks to automatic fallback. yfinance/Yahoo (HK/US/Canada/UK), OKX (crypto), mootdx (A-shares, TCP-direct, no IP throttle), and AKShare (A-shares, US, HK, futures, forex) are all free. LSE `.L` quotes must declare GBP or GBp so pence can be normalized before GBP accounting. Tushare token is optional — mootdx is the preferred no-token A-share fallback, with AKShare as a broader backup.
+> **Tip:** All markets work without any API keys thanks to automatic fallback. yfinance/Yahoo (HK/US/Canada/UK), OKX (crypto), and AKShare (A-shares, US, HK, futures, forex) are all free. LSE `.L` quotes must declare GBP or GBp so pence can be normalized before GBP accounting. Tushare token is optional; tencent, baostock and AKShare are the no-token A-share fallbacks.
### GitHub Copilot SDK provider
diff --git a/README_ar.md b/README_ar.md
index 695350674..deaac2108 100644
--- a/README_ar.md
+++ b/README_ar.md
@@ -456,7 +456,8 @@ vibe-trading connector install /tmp/my-broker
| Source | Markets | Auth | Role |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | none | never IP-banned (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | none | never IP-banned |
+| `mootdx` | A-share (explicit-only) | none | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / US / HK | none | OHLCV + deep fundamentals & flow tools (throttled) |
| `baostock` · `akshare` | A (+ US/HK/futures/macro/fx) | none | free fallbacks |
| `tushare` | A / HK / futures / fund / macro | token | richest A-share |
@@ -478,7 +479,7 @@ vibe-trading connector install /tmp/my-broker
**سلاسل التراجع (بحسب خطر حظر عنوان IP):**
-- **أسهم A** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **أسهم A** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **أسهم US** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **أسهم HK** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **أسهم الهند (NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -842,7 +843,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **مزودو LLM المدعومون:** OpenRouter, OpenAI, Anthropic (Messages API الأصلي), DeepSeek, Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, Novita AI, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama (local). عند عدم ضبط أي `*_BASE_URL`، يتراجع كل مزوّد إلى نقطة نهايته القانونية، فيكفي مفتاح واحد. راجع `.env.example` للإعداد.
-> **نصيحة:** تعمل كل الأسواق دون مفاتيح API بفضل fallback التلقائي. yfinance/Yahoo (HK/US/كندا/المملكة المتحدة)، وOKX (crypto)، وmootdx (أسهم A، اتصال TCP مباشر بدون قيود IP)، وAKShare (A-shares, US, HK, futures, forex) كلها مجانية. يجب أن تعلن أسعار LSE `.L` عملة GBP أو GBp لتطبيع البنس قبل المحاسبة بالجنيه. رمز Tushare اختياري — mootdx هو الـ fallback الموصى به لأسهم A بدون رمز، بينما يوفر AKShare احتياطياً أوسع تغطية.
+> **نصيحة:** تعمل كل الأسواق دون مفاتيح API بفضل fallback التلقائي. yfinance/Yahoo (HK/US/كندا/المملكة المتحدة)، وOKX (crypto)، وAKShare (A-shares, US, HK, futures, forex) كلها مجانية. يجب أن تعلن أسعار LSE `.L` عملة GBP أو GBp لتطبيع البنس قبل المحاسبة بالجنيه. رمز Tushare اختياري، ومصادر أسهم A بدون رمز هي tencent وbaostock وAKShare.
### المسار A: Docker (دون إعداد)
diff --git a/README_es.md b/README_es.md
index d36a6a3a9..f45220af3 100644
--- a/README_es.md
+++ b/README_es.md
@@ -455,7 +455,8 @@ Una sola llamada `get_market_data`, **28 fuentes de datos de mercado**, una de e
| Fuente | Mercados | Autenticación | Rol |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | ninguna | nunca bloqueada por IP (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | ninguna | nunca bloqueada por IP |
+| `mootdx` | A-share (explicit-only) | ninguna | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / EE. UU. / HK | ninguna | OHLCV + herramientas de fundamentales y flujo profundas (limitada) |
| `baostock` · `akshare` | A (+ EE. UU./HK/futuros/macro/fx) | ninguna | fallbacks gratuitos |
| `tushare` | A / HK / futuros / fondos / macro | token | la más completa para A-share |
@@ -477,7 +478,7 @@ Una sola llamada `get_market_data`, **28 fuentes de datos de mercado**, una de e
**Cadenas de fallback (por riesgo de bloqueo de IP):**
-- **A-share** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A-share** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **EE. UU.** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **HK** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **India (NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -862,7 +863,7 @@ vibe-trading-mcp # inicia el servidor MCP (stdio)
> **Proveedores de LLM compatibles:** OpenRouter, OpenAI, Anthropic (API de Messages nativa), DeepSeek, Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, Novita AI, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama (local). Cuando no se configura ningún `*_BASE_URL`, cada proveedor recurre a su endpoint canónico, así que basta con una clave. Consulta `.env.example` para la configuración.
-> **Consejo:** Todos los mercados funcionan sin ninguna clave de API gracias al fallback automático. yfinance/Yahoo (HK/US/Canadá/Reino Unido), OKX (cripto), mootdx (acciones A, conexión TCP directa, sin limitación de IP) y AKShare (acciones A, EE. UU., HK, futuros, forex) son gratuitos. Las cotizaciones LSE `.L` deben declarar GBP o GBp para normalizar los peniques antes de la contabilidad en GBP. El token de Tushare es opcional — mootdx es el fallback preferido sin token para acciones A, con AKShare como respaldo más amplio.
+> **Consejo:** Todos los mercados funcionan sin ninguna clave de API gracias al fallback automático. yfinance/Yahoo (HK/US/Canadá/Reino Unido), OKX (cripto) y AKShare (acciones A, EE. UU., HK, futuros, forex) son gratuitos. Las cotizaciones LSE `.L` deben declarar GBP o GBp para normalizar los peniques antes de la contabilidad en GBP. El token de Tushare es opcional; los fallback sin token para acciones A son tencent, baostock y AKShare.
### Ruta A: Docker (configuración cero)
diff --git a/README_id.md b/README_id.md
index e65eab7e4..4fa2f5077 100644
--- a/README_id.md
+++ b/README_id.md
@@ -617,7 +617,8 @@ Satu call `get_market_data`, **28 sumber data market**, salah satunya marketplac
| Sumber | Market | Auth | Peran |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | tidak ada | tidak terkena IP-ban (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | tidak ada | tidak terkena IP-ban |
+| `mootdx` | A-share (explicit-only) | tidak ada | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / AS / HK | tidak ada | OHLCV + fundamental mendalam & tool flow (throttled) |
| `baostock` · `akshare` | A (+ AS/HK/futures/makro/fx) | tidak ada | fallback gratis |
| `tushare` | A / HK / futures / fund / makro | token | A-share paling kaya |
@@ -639,7 +640,7 @@ Satu call `get_market_data`, **28 sumber data market**, salah satunya marketplac
**Fallback chain (berdasarkan risiko IP-ban):**
-- **A-share** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A-share** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **US** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **HK** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **India (NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -1020,7 +1021,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **Provider LLM yang didukung:** OpenRouter, OpenAI, Anthropic (native Messages API), DeepSeek, OpenCode (Go / Zen), Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, Novita AI, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama (lokal). Jika `*_BASE_URL` tidak diatur, setiap provider fallback ke endpoint canonical-nya, jadi cukup key saja. Lihat `.env.example` untuk config.
-> **Tip:** Semua market dapat bekerja tanpa API key berkat fallback otomatis. yfinance/Yahoo (HK/AS/Kanada/UK), OKX (crypto), mootdx (A-share, TCP langsung, tanpa throttle IP), dan AKShare (A-share, AS, HK, futures, forex) semuanya gratis. Quote LSE `.L` harus mendeklarasikan GBP atau GBp agar pence dapat dinormalisasi sebelum accounting GBP. Token Tushare opsional — mootdx adalah fallback A-share tanpa token yang disarankan, dengan AKShare sebagai backup yang lebih luas.
+> **Tip:** Semua market dapat bekerja tanpa API key berkat fallback otomatis. yfinance/Yahoo (HK/AS/Kanada/UK), OKX (crypto), dan AKShare (A-share, AS, HK, futures, forex) semuanya gratis. Quote LSE `.L` harus mendeklarasikan GBP atau GBp agar pence dapat dinormalisasi sebelum accounting GBP. Token Tushare opsional; fallback A-share tanpa token adalah tencent, baostock, dan AKShare.
<a id="github-copilot-sdk-provider"></a>
### Provider GitHub Copilot SDK
diff --git a/README_ja.md b/README_ja.md
index 201b5b581..83e5b23c9 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -456,7 +456,8 @@ vibe-trading connector install /tmp/my-broker
| Source | Markets | Auth | Role |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | none | never IP-banned (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | none | never IP-banned |
+| `mootdx` | A-share (explicit-only) | none | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / US / HK | none | OHLCV + deep fundamentals & flow tools (throttled) |
| `baostock` · `akshare` | A (+ US/HK/futures/macro/fx) | none | free fallbacks |
| `tushare` | A / HK / futures / fund / macro | token | richest A-share |
@@ -478,7 +479,7 @@ vibe-trading connector install /tmp/my-broker
**フォールバックチェーン(IP 規制リスク順):**
-- **A 株** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A 株** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **米国株** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **香港株** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **インド株(NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -847,7 +848,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **Supported LLM providers:** OpenRouter、OpenAI、Anthropic(ネイティブ Messages API)、DeepSeek、Gemini、Groq、DashScope/Qwen、Zhipu、Moonshot/Kimi、MiniMax、SiliconFlow(CN + Global)、Xiaomi MIMO、Novita AI、iFlytek Spark、Z.ai、NVIDIA NIM、ModelScope、GitHub Copilot、Ollama(local)。`*_BASE_URL` が未設定の場合、各プロバイダーは canonical なエンドポイントにフォールバックするため、key だけで十分です。設定は `.env.example` を参照してください。
-> **Tip:** 自動フォールバックにより、すべての市場は API key なしで利用できます。yfinance/Yahoo(HK/US/カナダ/英国)、OKX(crypto)、mootdx(A 株、TCP 直結で IP 制限なし)、AKShare(A-shares、US、HK、futures、forex)はすべて無料です。LSE `.L` クォートは GBP または GBp の明示が必要で、GBP 会計の前にペンスを正規化します。Tushare token は任意で、A 株は mootdx が推奨の no-token fallback、AKShare がより広いカバレッジのバックアップになります。
+> **Tip:** 自動フォールバックにより、すべての市場は API key なしで利用できます。yfinance/Yahoo(HK/US/カナダ/英国)、OKX(crypto)、AKShare(A-shares、US、HK、futures、forex)はすべて無料です。LSE `.L` クォートは GBP または GBp の明示が必要で、GBP 会計の前にペンスを正規化します。Tushare token は任意で、A 株の no-token fallback は tencent・baostock・AKShare です。
### Path A: Docker(設定ゼロ)
diff --git a/README_ko.md b/README_ko.md
index 591556f41..547c82ab9 100644
--- a/README_ko.md
+++ b/README_ko.md
@@ -456,7 +456,8 @@ vibe-trading connector install /tmp/my-broker
| Source | Markets | Auth | Role |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | none | never IP-banned (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | none | never IP-banned |
+| `mootdx` | A-share (explicit-only) | none | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / US / HK | none | OHLCV + deep fundamentals & flow tools (throttled) |
| `baostock` · `akshare` | A (+ US/HK/futures/macro/fx) | none | free fallbacks |
| `tushare` | A / HK / futures / fund / macro | token | richest A-share |
@@ -478,7 +479,7 @@ vibe-trading connector install /tmp/my-broker
**폴백 체인 (IP 차단 위험 순):**
-- **A주** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A주** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **미국** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **홍콩** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **인도 (NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -845,7 +846,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **지원 LLM provider:** OpenRouter, OpenAI, Anthropic (native Messages API), DeepSeek, Gemini, Groq, DashScope/Qwen, Zhipu, Moonshot/Kimi, MiniMax, SiliconFlow (CN + Global), Xiaomi MIMO, Novita AI, iFlytek Spark, Z.ai, NVIDIA NIM, ModelScope, GitHub Copilot, Ollama(local). `*_BASE_URL`이 설정되지 않으면 각 provider는 canonical endpoint로 폴백하므로 key만 있으면 충분합니다. 설정은 `.env.example`을 참고하세요.
-> **팁:** 자동 fallback 덕분에 모든 시장은 API key 없이도 작동합니다. yfinance/Yahoo(HK/US/캐나다/영국), OKX(crypto), mootdx(A주, TCP 직결, IP 제한 없음), AKShare(A주, US, HK, futures, forex)는 모두 무료입니다. LSE `.L` 호가는 GBP 또는 GBp로 명시되어야 하며, GBP 회계 전에 펜스를 정규화합니다. Tushare token은 선택 사항이며, mootdx가 권장 no-token A주 fallback이고 AKShare는 더 넓은 커버리지의 백업입니다.
+> **팁:** 자동 fallback 덕분에 모든 시장은 API key 없이도 작동합니다. yfinance/Yahoo(HK/US/캐나다/영국), OKX(crypto), AKShare(A주, US, HK, futures, forex)는 모두 무료입니다. LSE `.L` 호가는 GBP 또는 GBp로 명시되어야 하며, GBP 회계 전에 펜스를 정규화합니다. Tushare token은 선택 사항이며, A주의 no-token fallback은 tencent·baostock·AKShare입니다.
### 경로 A: Docker (설정 불필요)
diff --git a/README_zh.md b/README_zh.md
index df10ae8aa..32871625b 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -471,7 +471,8 @@ vibe-trading connector install /tmp/my-broker
| Source | Markets | Auth | Role |
|--------|---------|------|------|
-| `tencent` · `mootdx` | A-share + HK | none | never IP-banned (`mootdx` = 通达信 TCP) |
+| `tencent` | A-share + HK | none | never IP-banned |
+| `mootdx` | A-share (explicit-only) | none | retired from the default chain 2026-10: TDX servers stopped answering the client protocol it speaks (#1729) |
| `eastmoney` | A / US / HK | none | OHLCV + deep fundamentals & flow tools (throttled) |
| `baostock` · `akshare` | A (+ US/HK/futures/macro/fx) | none | free fallbacks |
| `tushare` | A / HK / futures / fund / macro | token | richest A-share |
@@ -493,7 +494,7 @@ vibe-trading connector install /tmp/my-broker
**Fallback 链(按被封 IP 风险排序):**
-- **A股** → `tencent` · `mootdx` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
+- **A股** → `tencent` · `eastmoney` · `baostock` · `akshare` · `tushare` · `gildata` · `local`
- **美股** → `yahoo` · `stooq` · `sina` · `eastmoney` · `yfinance` · `tiingo` · `fmp` · `finnhub` · `alphavantage` · `longbridge` · `akshare` · `local`
- **港股** → `tencent` · `eastmoney` · `yahoo` · `futu` · `akshare` · `yfinance` · `tushare` · `longbridge` · `local`
- **印度(NSE/BSE)** → `yahoo` · `yfinance` · `india_broker` · `local`
@@ -852,7 +853,7 @@ vibe-trading-mcp # start MCP server (stdio)
> **支持的 LLM providers:** OpenRouter、OpenAI、Anthropic(原生 Messages API)、DeepSeek、Gemini、Groq、DashScope/Qwen、Zhipu、Moonshot/Kimi、MiniMax、SiliconFlow(CN + Global)、Xiaomi MIMO、Novita AI、iFlytek 星火、Z.ai、NVIDIA NIM、ModelScope、GitHub Copilot、Ollama(本地)。未设置 `*_BASE_URL` 时,每个 provider 会回退到其规范端点,因此只需一个 key 即可。配置见 `.env.example`。
-> **提示:** 由于自动 fallback,所有市场都可以在没有任何 API key 的情况下工作。yfinance/Yahoo(港股/美股/加拿大/英国)、OKX(加密)、mootdx(A 股,TCP 直连不封 IP)和 AKShare(A 股、美股、港股、期货、外汇)都是免费的。LSE `.L` 报价必须明示为 GBP 或 GBp,以便在英镑记账前将便士归一化。Tushare token 是可选项 —— mootdx 是首选的免 token A 股 fallback,AKShare 作为覆盖更广的兜底。
+> **提示:** 由于自动 fallback,所有市场都可以在没有任何 API key 的情况下工作。yfinance/Yahoo(港股/美股/加拿大/英国)、OKX(加密)和 AKShare(A 股、美股、港股、期货、外汇)都是免费的。LSE `.L` 报价必须明示为 GBP 或 GBp,以便在英镑记账前将便士归一化。Tushare token 是可选项,tencent、baostock 和 AKShare 是免 token 的 A 股 fallback。
### Path A: Docker(零配置)
diff --git a/agent/.env.example b/agent/.env.example
index 98fac8c34..1446fcfcd 100644
--- a/agent/.env.example
+++ b/agent/.env.example
@@ -186,8 +186,8 @@ TUSHARE_TOKEN=your-tushare-token
# chain (same sources, new order); invalid values are ignored with a warning.
# Also editable in the Web UI: Settings -> Data Source Priority. Example —
# put the paid Tushare feed first for A-shares (default order is
-# tencent,mootdx,eastmoney,baostock,akshare,tushare,gildata,local):
-# MARKET_DATA_ORDER_A_SHARE=tushare,tencent,mootdx,eastmoney,baostock,akshare,gildata,local
+# tencent,eastmoney,baostock,akshare,tushare,gildata,local):
+# MARKET_DATA_ORDER_A_SHARE=tushare,tencent,eastmoney,baostock,akshare,gildata,local
# Caliber caveat: sources differ in adjustment basis (e.g. yahoo/yfinance serve
# raw OHLC while tencent/eastmoney/tushare/baostock/gildata serve adjusted
# prices), so a reordered chain can change backtest numbers.
diff --git a/agent/SKILL.md b/agent/SKILL.md
index 2f48aaf95..6d47a50f9 100644
--- a/agent/SKILL.md
+++ b/agent/SKILL.md
@@ -58,7 +58,7 @@ Core research MCP tools work with zero API keys for HK/US/Canada/crypto. After `
| Feature | Key needed | When |
|---------|-----------|------|
| HK/US/Canada equities & crypto | None | Always free (yfinance / stooq / yahoo + OKX) |
-| China A-share data | None | Free via akshare / baostock / tencent / sina / eastmoney / mootdx fallback (`TUSHARE_TOKEN` optional for premium quality) |
+| China A-share data | None | Free via akshare / baostock / tencent / sina / eastmoney fallback (`TUSHARE_TOKEN` optional for premium quality) |
| Premium US fundamentals/quotes | `FINNHUB_API_KEY` / `ALPHAVANTAGE_API_KEY` / `TIINGO_API_KEY` / `FMP_API_KEY` | Only for optional-key providers (graceful fallback to free sources) |
| Multi-agent swarm (`run_swarm`) | `OPENAI_API_KEY` + `LANGCHAIN_MODEL_NAME` | Swarm spawns internal LLM workers |
@@ -81,7 +81,7 @@ Create and run quantitative strategies across 10 engines (ChinaA, GlobalEquity,
- **Korea equities (KRX: KOSPI/KOSDAQ)** via pykrx using `<CODE>.KS` (KOSPI, e.g. `005930.KS`) or `<CODE>.KQ` (KOSDAQ, e.g. `247540.KQ`) — free, no API key (`pip install "vibe-trading-ai[krx]"`; yahoo/yfinance fallback needs no extra). pykrx serves **daily bars only** (an intraday request falls through to another source) and its adjusted series is Naver-backed rather than a verbatim KRX print. The `KoreaEquityEngine` models same-day round trips (no T+1), the ±30% daily price limit measured from the previous close and quantized to the KRX tick grid, tick-rounded fills, the 0.20% sell-side transaction tax (2026 rate), and 1-share lots. It is **long-only**: `allow_short` is refused, because KRX covered-short and uptick rules cannot be enforced on daily bars.
- **Vietnam equities (HOSE)** via yahoo / yfinance using `<TICKER>.VN` (e.g. `VIC.VN`) — no API key. Yahoo officially lists HOSE but not HNX or UPCOM; those venues are unsupported and need the `local` source. yfinance is an unofficial Yahoo client, so availability is best-effort and subject to Yahoo's personal-use terms. The `VietnamEquityEngine` approximates the formal T+2 settlement cycle — shares bought on day T normally become sellable during the afternoon session on T+2, informally called T+1.5 — as a two-bar hold on daily data (`vn_settlement_bars` covers scenario testing and future rule changes). It applies HOSE's normal ±7% band around the reference price, rounding the ceiling down and the floor up to the 10/50/100-VND tick grid, and uses 100-share round lots; odd-lot trading is not modelled. Costs are configurable brokerage plus, for individual investors, 0.1% sell-side personal income tax on gross proceeds. It is **long-only**, because operational cash-equity short selling is not generally available in Vietnam.
- **Cryptocurrency** via OKX or CCXT/100+ exchanges (free, no API key)
-- **China A-shares** via AKShare / baostock / tencent / sina / eastmoney / mootdx (free, no API key) — `TUSHARE_TOKEN` optional for premium quality
+- **China A-shares** via AKShare / baostock / tencent / sina / eastmoney (free, no API key) — `TUSHARE_TOKEN` optional for premium quality
- **Futures, forex, macro** via AKShare (free, no API key)
- **Forex / metals with no local terminal** via the hosted **TickerAll** MetaTrader 5 feed (`source="tickerall"`, `TICKERALL_API_KEY` + `TICKERALL_ACCOUNT_ID`, read-only) — the same broker feed as the `mt5` loader but over a hosted API on any OS. **Explicit-only** (never an automatic fallback).
- **HK & A-share equities** via Futu (broker login required, optional)
diff --git a/agent/backtest/loader_health.py b/agent/backtest/loader_health.py
index b6f4f8050..759b6a282 100644
--- a/agent/backtest/loader_health.py
+++ b/agent/backtest/loader_health.py
@@ -29,7 +29,6 @@ CANARY_SYMBOLS = {
"binance": "BTC-USDT",
"ccxt": "BTC-USDT",
"eastmoney": "601398.SH",
- "mootdx": "601398.SH",
"nobitex": "BTC-IRT",
"okx": "BTC-USDT",
"pykrx": "005930.KS",
@@ -43,12 +42,18 @@ CANARY_SYMBOLS = {
"yahoo": "AAPL.US",
"yfinance": "AAPL.US",
}
-EXCLUDED_PUBLIC_SOURCES = {"local": "operator files, not a public endpoint"}
+EXCLUDED_PUBLIC_SOURCES = {
+ "local": "operator files, not a public endpoint",
+ # Retired 2026-10-08 (HKUDS/Vibe-Trading#1729): TDX servers stopped
+ # answering the mootdx/tdxpy client protocol in 2026-07
+ # (mootdx/mootdx#157) and upstream is dormant. The loader stays
+ # registered for explicit use but is out of the default chain.
+ "mootdx": "upstream TDX protocol dead since 2026-07 (mootdx/mootdx#157)",
+}
DEPENDENCIES = {
"akshare": "akshare",
"baostock": "baostock",
"ccxt": "ccxt",
- "mootdx": "mootdx",
"pykrx": "pykrx",
"yfinance": "yfinance",
}
diff --git a/agent/backtest/loaders/mootdx_loader.py b/agent/backtest/loaders/mootdx_loader.py
index f9177c2e1..712a69d73 100644
--- a/agent/backtest/loaders/mootdx_loader.py
+++ b/agent/backtest/loaders/mootdx_loader.py
@@ -1,5 +1,13 @@
"""Mootdx loader: A-share OHLCV via TCP-direct 通达信 servers (no IP ban).
+Status (2026-10-08): RETIRED from the default fallback chain. The TDX quote
+servers stopped answering the client protocol mootdx/tdxpy speak in 2026-07
+(mootdx/mootdx#157; every category and market returns empty) and upstream is
+dormant since 2024. The loader remains registered so explicit
+``source="mootdx"`` calls keep working if a compatible fork ever appears,
+but the default chain no longer routes through it. See
+HKUDS/Vibe-Trading#1729.
+
Mootdx (https://github.com/mootdx/mootdx) talks the native 通达信 binary
protocol over TCP and is not subject to the HTTP scraping rate limits that
periodically break the akshare → East Money path. Public market data only,
diff --git a/agent/backtest/loaders/registry.py b/agent/backtest/loaders/registry.py
index e7ccf7fe4..fa8ada01a 100644
--- a/agent/backtest/loaders/registry.py
+++ b/agent/backtest/loaders/registry.py
@@ -178,7 +178,11 @@ def is_no_network_fallback_source(source: str) -> bool:
FALLBACK_CHAINS: dict[str, list[str]] = {
"a_share": [
"tencent",
- "mootdx",
+ # mootdx retired from the default chain 2026-10-08: the TDX quote
+ # servers stopped answering the client protocol mootdx/tdxpy speak
+ # (2026-07, mootdx/mootdx#157) and upstream is dormant, so the slot
+ # only cost ~10s of dead time per miss. The loader stays registered
+ # for explicit source="mootdx" use. See HKUDS/Vibe-Trading#1729.
"eastmoney",
"baostock",
"akshare",
@@ -454,7 +458,7 @@ def additive_caliber_warning(stamps: dict[str, tuple[str, str]]) -> str | None:
# Users can reprioritize a market's chain via one env var per market
# (persisted to ~/.vibe-trading/.env by the Settings page's "source
# priority" card):
-# MARKET_DATA_ORDER_A_SHARE=tushare,tencent,mootdx,...
+# MARKET_DATA_ORDER_A_SHARE=tushare,tencent,eastmoney,...
# The value must be a permutation of the market's default chain —
# reordering is allowed, adding/dropping sources is not. Invalid values
# warn and keep the default chain, so a typo can never silently strip a
diff --git a/agent/src/config/env_schema.py b/agent/src/config/env_schema.py
index efb001e8b..caaf37985 100644
--- a/agent/src/config/env_schema.py
+++ b/agent/src/config/env_schema.py
@@ -249,7 +249,7 @@ class DataConfig(_EnvBase):
etoro_user_key: str = Field(alias="ETORO_USER_KEY", default="")
# Per-market source-order overrides (Settings page "source priority").
# Value: comma-separated permutation of the market's default chain, e.g.
- # MARKET_DATA_ORDER_A_SHARE=tushare,tencent,mootdx,... Applied by
+ # MARKET_DATA_ORDER_A_SHARE=tushare,tencent,eastmoney,... Applied by
# backtest.loaders.registry.refresh_source_order_overrides() (which reads
# os.getenv directly); declared here for visibility/validation parity.
market_data_order_a_share: str = Field(alias="MARKET_DATA_ORDER_A_SHARE", default="")
diff --git a/agent/src/skills/data-routing/SKILL.md b/agent/src/skills/data-routing/SKILL.md
index ac570448d..7bb624d77 100644
--- a/agent/src/skills/data-routing/SKILL.md
+++ b/agent/src/skills/data-routing/SKILL.md
@@ -28,7 +28,7 @@ per-source skill.
| ccxt | Crypto (100+ exchanges) | No | Needs exchange access | ccxt |
| baostock | A-shares (free daily/min) | No | China network | data-routing |
| tencent | A-shares, HK, US (never-banned) | No | Unrestricted | data-routing |
-| mootdx | A-shares (TDX servers, never-banned) | No | China network | data-routing |
+| mootdx | A-shares (retired 2026-10: TDX servers stopped answering the client protocol; explicit `source="mootdx"` only) | No | China network | data-routing |
| futu | A/HK/US via OpenD gateway | Yes (OpenD running) | Local gateway | data-routing (runner-internal) |
| mt5 | Forex & metals (your broker's MT5 feed) | Yes (running, logged-in MT5 terminal; optional `~/.vibe-trading/mt5.json`) | Local terminal (Windows) | data-routing (runner-internal) |
| tickerall | Forex & metals (same broker MT5 feed, hosted) | Yes (`TICKERALL_API_KEY` + `TICKERALL_ACCOUNT_ID`; read-only) | Hosted API (any OS, no terminal) | data-routing (runner-internal; **explicit `source=tickerall` only**) |
@@ -96,7 +96,7 @@ same-market sources automatically. Only set a concrete source when the user asks
### Source priority (for OHLCV by market)
-- **A-shares**: tencent / mootdx (never banned) > tushare (`TUSHARE_TOKEN`) >
+- **A-shares**: tencent (never banned) > tushare (`TUSHARE_TOKEN`) >
baostock / akshare > eastmoney (throttled).
- **US stocks**: stooq / yahoo > tiingo / finnhub / fmp / alphavantage (key-gated) >
sina / eastmoney (throttled) > yfinance.
@@ -123,8 +123,8 @@ same-market sources automatically. Only set a concrete source when the user asks
## Ban-Risk & Fallback Notes
-- **Prefer never-banned sources**: `tencent` and `mootdx` have no observed IP ban;
- reach for them first for A-share OHLCV when no token is set.
+- **Prefer never-banned sources**: `tencent` has no observed IP ban;
+ reach for it first for A-share OHLCV when no token is set.
- **Eastmoney rate-limits by IP and must be throttled.** Every Eastmoney-backed
tool/loader routes through the shared per-host throttle; do not hammer it. On a
throttle/timeout, fall back to the same-market source above (tencent/baostock).
diff --git a/agent/src/skills/mootdx/SKILL.md b/agent/src/skills/mootdx/SKILL.md
index 7f246e3a4..fe04a6f05 100644
--- a/agent/src/skills/mootdx/SKILL.md
+++ b/agent/src/skills/mootdx/SKILL.md
@@ -1,9 +1,16 @@
---
name: mootdx
category: data-source
-description: Mootdx A-share market data via TCP-direct 通达信 servers. Free, no API key, no IP rate limits. Use as the stable A-share OHLCV fallback when akshare's East Money scrape is throttled.
+description: Mootdx A-share market data via TCP-direct 通达信 servers. RETIRED 2026-10 — TDX servers stopped answering the client protocol, so this source is out of the automatic fallback chain and kept only for explicit `source="mootdx"` use.
---
+> **Status (2026-10-08): retired from the default chain.** TDX servers stopped
+> answering the client protocol mootdx speaks (upstream: mootdx/mootdx#157), so
+> this source is no longer in the automatic A-share fallback and is excluded
+> from the loader-health canary. The loader stays registered for explicit
+> `source="mootdx"` calls in case a future upstream release restores the
+> protocol. For A-share OHLCV prefer tencent / eastmoney / baostock.
+
## Overview
Mootdx talks the native 通达信 (TDX) binary protocol over TCP, bypassing the HTTP scrapers that periodically fail under load (akshare → East Money is the canonical example). Public market data only — no token, no per-IP throttling, no captcha.
diff --git a/agent/src/tools/market_data_tool.py b/agent/src/tools/market_data_tool.py
index 2ed479a94..5c4c25ef6 100644
--- a/agent/src/tools/market_data_tool.py
+++ b/agent/src/tools/market_data_tool.py
@@ -122,7 +122,7 @@ class MarketDataTool(BaseTool):
"Longbridge OpenAPI (requires Longbridge credentials). "
"Free, no key: yfinance/yahoo (US/HK/Canada equities; "
"Canada uses .TO/.V), okx/ccxt/binance "
- "(crypto), baostock/tencent/eastmoney/sina/akshare/mootdx "
+ "(crypto), baostock/tencent/eastmoney/sina/akshare "
"(China A-shares), futu (HK/A via local FutuOpenD), stooq "
"(global EOD), pykrx (Korea KRX daily "
"bars for <CODE>.KS / <CODE>.KQ; needs the optional pykrx "
diff --git a/agent/tests/test_loader_health.py b/agent/tests/test_loader_health.py
index 66f59cb5d..96f1ea2e3 100644
--- a/agent/tests/test_loader_health.py
+++ b/agent/tests/test_loader_health.py
@@ -39,6 +39,16 @@ def test_catalog_covers_every_public_network_loader():
assert health.coverage_errors() == []
+def test_retired_mootdx_is_excluded_with_reason_not_canaried():
+ """mootdx left the canary set when the TDX servers stopped answering the
+ mootdx/tdxpy protocol (#1729, mootdx/mootdx#157). It must stay visible as
+ an excluded entry whose reason says why, not silently vanish."""
+ assert "mootdx" not in health.CANARY_SYMBOLS
+ reason = health.EXCLUDED_PUBLIC_SOURCES.get("mootdx")
+ assert reason and "mootdx/mootdx#157" in reason
+ assert health.coverage_errors() == []
+
+
def test_new_loader_cannot_silently_disappear(monkeypatch):
from backtest.loaders.registry import LOADER_REGISTRY
diff --git a/agent/tests/test_market_data.py b/agent/tests/test_market_data.py
index 614313f3c..af82fb8c5 100644
--- a/agent/tests/test_market_data.py
+++ b/agent/tests/test_market_data.py
@@ -638,7 +638,7 @@ def a_share_tushare_first():
from backtest.loaders import registry
os.environ["MARKET_DATA_ORDER_A_SHARE"] = (
- "tushare,tencent,mootdx,eastmoney,baostock,akshare,gildata,local"
+ "tushare,tencent,eastmoney,baostock,akshare,gildata,local"
)
registry.refresh_source_order_overrides()
try:
diff --git a/agent/tests/test_mootdx_loader.py b/agent/tests/test_mootdx_loader.py
index ff1040f80..9106d896b 100644
--- a/agent/tests/test_mootdx_loader.py
+++ b/agent/tests/test_mootdx_loader.py
@@ -228,15 +228,16 @@ def test_is_available_true_when_mootdx_present(fake_client: _FakeStdQuotes) -> N
# ---------------------------------------------------------------------------
-def test_registry_lists_mootdx_in_a_share_chain() -> None:
+def test_registry_keeps_mootdx_registered_but_off_default_chain() -> None:
from backtest.loaders.registry import FALLBACK_CHAINS, _ensure_registered, LOADER_REGISTRY
_ensure_registered()
assert "mootdx" in LOADER_REGISTRY
chain = FALLBACK_CHAINS["a_share"]
- assert "mootdx" in chain
+ # Retired from the default chain 2026-10: TDX servers stopped answering the
+ # client protocol (#1729, mootdx/mootdx#157). The loader stays registered so
+ # explicit source="mootdx" keeps working, but auto fallback never picks it.
+ assert "mootdx" not in chain
# Order is by IP-ban risk: throttle-tolerant public/no-auth sources lead,
- # key-gated REST trails. So mootdx (TCP, no auth) > akshare (HTTP scrape) >
- # tushare (key-gated REST, placed last).
- assert chain.index("mootdx") < chain.index("akshare")
+ # key-gated REST trails. So akshare (HTTP scrape) > tushare (key-gated REST).
assert chain.index("akshare") < chain.index("tushare")
diff --git a/agent/tests/test_registry.py b/agent/tests/test_registry.py
index bd6b1ebfe..8d1c44fc4 100644
--- a/agent/tests/test_registry.py
+++ b/agent/tests/test_registry.py
@@ -17,7 +17,9 @@ from backtest.loaders.registry import (
FALLBACK_CHAINS,
LOADER_REGISTRY,
VALID_SOURCES,
+ get_default_source_order,
get_loader_cls_with_fallback,
+ is_valid_source_order,
register,
resolve_loader,
)
@@ -230,6 +232,16 @@ class TestFallbackChains:
for market, chain in FALLBACK_CHAINS.items():
assert len(chain) > 0, f"Fallback chain for {market} is empty"
+ def test_mootdx_retired_from_chain_but_still_registered(self) -> None:
+ """mootdx left the default a_share chain (#1729: TDX servers stopped
+ answering the mootdx/tdxpy protocol, upstream dormant), but the loader
+ stays registered so explicit source="mootdx" keeps working."""
+ assert "mootdx" not in FALLBACK_CHAINS["a_share"]
+ assert "mootdx" in LOADER_REGISTRY
+ # An override naming it is no longer a permutation of the default.
+ order = get_default_source_order("a_share") + ["mootdx"]
+ assert not is_valid_source_order("a_share", order)
+
def test_crypto_chain_includes_yfinance_fallback(self) -> None:
"""yfinance is a fallback for crypto when OKX, Binance and CCXT fail."""
assert "yfinance" in FALLBACK_CHAINS["crypto"]
@@ -241,7 +253,6 @@ class TestFallbackChains:
with key-gated REST fallbacks, in the exact reviewed order."""
assert FALLBACK_CHAINS["a_share"] == [
"tencent",
- "mootdx",
"eastmoney",
"baostock",
"akshare",
diff --git a/agent/tests/test_settings_api.py b/agent/tests/test_settings_api.py
index abe1833ec..3b0a1f9c0 100644
--- a/agent/tests/test_settings_api.py
+++ b/agent/tests/test_settings_api.py
@@ -718,7 +718,7 @@ def test_update_source_orders_persists_and_hot_applies(
{
"market": "a_share",
"order": [
- "tushare", "tencent", "mootdx", "eastmoney",
+ "tushare", "tencent", "eastmoney",
"baostock", "akshare", "gildata", "local",
],
},
@@ -736,7 +736,7 @@ def test_update_source_orders_persists_and_hot_applies(
assert entry["override"][0] == "tushare"
# ...persisted to the dotenv...
env_text = (tmp_path / ".env").read_text(encoding="utf-8")
- assert "MARKET_DATA_ORDER_A_SHARE=tushare,tencent,mootdx" in env_text
+ assert "MARKET_DATA_ORDER_A_SHARE=tushare,tencent,eastmoney" in env_text
# ...synced into the running process env...
assert os.environ.get("MARKET_DATA_ORDER_A_SHARE", "").startswith("tushare,")
# ...and hot-applied to the live registry chain.
@@ -757,7 +757,7 @@ def test_update_source_orders_reset_clears_override(
{
"market": "a_share",
"order": [
- "tushare", "tencent", "mootdx", "eastmoney",
+ "tushare", "tencent", "eastmoney",
"baostock", "akshare", "gildata", "local",
],
},
diff --git a/agent/tests/test_source_order_overrides.py b/agent/tests/test_source_order_overrides.py
index 890aba289..c995add25 100644
--- a/agent/tests/test_source_order_overrides.py
+++ b/agent/tests/test_source_order_overrides.py
@@ -188,7 +188,7 @@ def test_empty_string_resets_to_default(
) -> None:
monkeypatch.setenv(
"MARKET_DATA_ORDER_A_SHARE",
- "tushare,tencent,mootdx,eastmoney,baostock,akshare,gildata,local",
+ "tushare,tencent,eastmoney,baostock,akshare,gildata,local",
)
refresh_source_order_overrides()
assert registry.FALLBACK_CHAINS["a_share"][0] == "tushare"
diff --git a/tools/requirements-loader-health.txt b/tools/requirements-loader-health.txt
index efe3a4b85..01992ac40 100644
--- a/tools/requirements-loader-health.txt
+++ b/tools/requirements-loader-health.txt
@@ -1,7 +1,7 @@
# Standalone public-loader canary environment (Python 3.11).
# Install into its own venv; import repository sources with PYTHONPATH=agent.
-# Do not install the full application: mootdx 0.11.7 requires httpx <0.26,
-# while the application's LLM dependencies require newer httpx.
+# Kept separate from the full application so optional SDK pins do not fight
+# the application's LLM dependency stack.
pandas>=2.2,<3
numpy>=1.26,<3
requests>=2.31,<3
@@ -13,5 +13,4 @@ yfinance>=0.2.54,<2
akshare>=1.17,<2
ccxt>=4,<5
baostock==0.9.3
-mootdx==0.11.7
pykrx>=1.0,<2