Skip to content

"Vibe-Trading: Your Personal Trading Agent"

docs(settings): surface adjustment-caliber caveat in source priority card

sambazhue132aec7b8e0
diff --git a/agent/.env.example b/agent/.env.example
index f52bc143a..dce57aa55 100644
--- a/agent/.env.example
+++ b/agent/.env.example
@@ -174,6 +174,9 @@ TUSHARE_TOKEN=your-tushare-token
# put the paid Tushare feed first for A-shares (default order is
# tencent,mootdx,eastmoney,baostock,akshare,tushare,local):
# MARKET_DATA_ORDER_A_SHARE=tushare,tencent,mootdx,eastmoney,baostock,akshare,local
+# Caliber caveat: sources differ in adjustment basis (e.g. yahoo/yfinance serve
+# raw OHLC while tencent/eastmoney/tushare/baostock serve adjusted prices), so
+# a reordered chain can change backtest numbers.
# HK/US equities: yfinance (free, no config needed)
# Crypto: OKX public API (free, no config needed)
# Crypto fallback exchange (default: binance). Change if OKX is blocked:
diff --git a/frontend/src/components/settings/SourcePrioritySettings.tsx b/frontend/src/components/settings/SourcePrioritySettings.tsx
index deec96841..6cd87f80a 100644
--- a/frontend/src/components/settings/SourcePrioritySettings.tsx
+++ b/frontend/src/components/settings/SourcePrioritySettings.tsx
@@ -269,6 +269,9 @@ export function SourcePrioritySettings() {
{t("settings.sourcePriority.howItWorksTitle")}
</div>
<p>{t("settings.sourcePriority.howItWorks")}</p>
+ <p className="mt-3 rounded-md border border-warning/40 bg-warning/10 px-2 py-1.5 text-xs text-warning-foreground">
+ {t("settings.sourcePriority.caliberCaveat")}
+ </p>
{activeEntry ? (
<p className="mt-3 break-all font-mono text-xs">
{activeEntry.env_var}
diff --git a/frontend/src/components/settings/__tests__/SourcePrioritySettings.test.tsx b/frontend/src/components/settings/__tests__/SourcePrioritySettings.test.tsx
index 8e246a3c9..496c89b0a 100644
--- a/frontend/src/components/settings/__tests__/SourcePrioritySettings.test.tsx
+++ b/frontend/src/components/settings/__tests__/SourcePrioritySettings.test.tsx
@@ -83,6 +83,8 @@ describe("SourcePrioritySettings", () => {
expect(screen.getByRole("button", { name: "Move up: tushare" })).toBeEnabled();
// Default badge — nothing customized yet.
expect(screen.getByText("Default")).toBeInTheDocument();
+ // Adjustment-caliber caveat is surfaced next to the setting (see PR review).
+ expect(screen.getByText(/adjustment basis/)).toBeInTheDocument();
});
it("sends all markets on save: reordered draft as order, default-equal as null", async () => {
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index c51402d7e..75a9fd3bd 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -435,6 +435,7 @@
"noMarkets": "لا توجد مصادر بيانات أسواق مسجلة.",
"howItWorksTitle": "كيف يعمل",
"howItWorks": "تُجرَّب المصادر من الأعلى إلى الأسفل للرموز المكتشفة تلقائيًا، وأي مصدر يفشل ينتقل إلى التالي. يُطبَّق الحفظ فورًا دون إعادة تشغيل.",
+ "caliberCaveat": "تنبيه: تختلف مصادر البيانات في أساس التعديل — فمثلًا ياهو يعيد أسعار OHLC غير معدّلة بينما تعيد Tencent/Eastmoney/Tushare أسعارًا معدّلة — لذا قد يغيّر إعادة ترتيب السلسلة أرقام الاختبار الرجعي.",
"markets": {
"a_share": "أسهم الصين (A)",
"us_equity": "الأسهم الأمريكية",
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index e6bab8fae..58fa97229 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -440,6 +440,7 @@
"noMarkets": "Keine Marktdatenquellen registriert.",
"howItWorksTitle": "So funktioniert es",
"howItWorks": "Bei automatisch erkannten Symbolen werden die Quellen von oben nach unten versucht; eine fehlgeschlagene Quelle fällt zur nächsten durch. Beim Speichern sofort wirksam — kein Neustart nötig.",
+ "caliberCaveat": "Hinweis: Die Quellen unterscheiden sich in der Adjustierungsbasis — z. B. liefert Yahoo unadjustierte OHLC-Kurse, während Tencent/Eastmoney/Tushare adjustierte Kurse liefern — das Umordnen der Kette kann daher Backtest-Zahlen verändern.",
"markets": {
"a_share": "China-Aktien (A)",
"us_equity": "US-Aktien",
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 0a925cadc..8a7e5d57a 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -440,6 +440,7 @@
"noMarkets": "No market data sources are registered.",
"howItWorksTitle": "How it works",
"howItWorks": "For auto-detected symbols, sources are tried top to bottom; a source that fails falls through to the next one. Saving applies immediately — no restart needed.",
+ "caliberCaveat": "Caliber caveat: sources differ in adjustment basis — e.g. Yahoo serves raw (unadjusted) OHLC while Tencent/Eastmoney/Tushare/BaoStock serve adjusted prices — so a reordered chain can change backtest numbers.",
"markets": {
"a_share": "A-Shares (China)",
"us_equity": "US Equities",
diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json
index a36e182a7..eff7195a1 100644
--- a/frontend/src/i18n/locales/es.json
+++ b/frontend/src/i18n/locales/es.json
@@ -440,6 +440,7 @@
"noMarkets": "No hay fuentes de datos de mercado registradas.",
"howItWorksTitle": "Cómo funciona",
"howItWorks": "Para los símbolos detectados automáticamente, las fuentes se prueban de arriba abajo; una fuente que falla pasa a la siguiente. Al guardar se aplica de inmediato, sin reiniciar.",
+ "caliberCaveat": "Advertencia: las fuentes difieren en la base de ajuste — p. ej. Yahoo entrega OHLC sin ajustar mientras Tencent/Eastmoney/Tushare entregan precios ajustados — reordenar la cadena puede cambiar los números del backtest.",
"markets": {
"a_share": "Acciones de China (A)",
"us_equity": "Acciones de EE. UU.",
diff --git a/frontend/src/i18n/locales/ja.json b/frontend/src/i18n/locales/ja.json
index 2b2ac0a0a..32b96df63 100644
--- a/frontend/src/i18n/locales/ja.json
+++ b/frontend/src/i18n/locales/ja.json
@@ -435,6 +435,7 @@
"noMarkets": "登録された市場データソースがありません。",
"howItWorksTitle": "動作のしくみ",
"howItWorks": "自動検出されたシンボルでは、上から順にソースが試行され、失敗したソースは次へフォールスルーします。保存すると再起動なしで即時反映されます。",
+ "caliberCaveat": "留意点:データソースごとに調整基準が異なります — 例えば Yahoo は未調整の OHLC を、Tencent/Eastmoney/Tushare は調整後価格を返します — 順序を変えるとバックテスト結果が変わる可能性があります。",
"markets": {
"a_share": "中国A株",
"us_equity": "米国株",
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index e6f3ba708..37d0ea707 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -435,6 +435,7 @@
"noMarkets": "등록된 시장 데이터 소스가 없습니다.",
"howItWorksTitle": "작동 방식",
"howItWorks": "자동 감지된 심볼은 위에서 아래로 소스를 시도하며, 실패한 소스는 다음으로 넘어갑니다. 저장하면 재시작 없이 즉시 적용됩니다.",
+ "caliberCaveat": "주의: 데이터 소스마다 수정 기준이 다릅니다 — 예를 들어 Yahoo는 미수정 OHLC를, Tencent/Eastmoney/Tushare는 수정 주가를 반환합니다 — 순서를 바꾸면 백테스트 수치가 달라질 수 있습니다.",
"markets": {
"a_share": "중국 A주",
"us_equity": "미국 주식",
diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json
index 0bdeceb03..41033eb10 100644
--- a/frontend/src/i18n/locales/zh-CN.json
+++ b/frontend/src/i18n/locales/zh-CN.json
@@ -435,6 +435,7 @@
"noMarkets": "没有注册任何市场数据源。",
"howItWorksTitle": "工作方式",
"howItWorks": "自动识别的标的按列表自上而下依次尝试,失败的源会顺延到下一个。保存后立即生效,无需重启。",
+ "caliberCaveat": "口径提示:各数据源的复权口径不同 — 例如 Yahoo 返回未复权原始 OHLC,腾讯/东方财富/Tushare 返回前复权价 — 重排市场链可能因此改变回测数值。",
"markets": {
"a_share": "A股",
"us_equity": "美股",