"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
docs(caliber): correct the HK evidence and name the new caliber in the tool schema
cgycoreya258f00385b5
diff --git a/agent/backtest/loaders/registry.py b/agent/backtest/loaders/registry.pyindex 84a99ec61..6de32b8fd 100644--- a/agent/backtest/loaders/registry.py+++ b/agent/backtest/loaders/registry.py@@ -277,10 +277,12 @@ PRICE_CALIBER_BY_SOURCE: dict[str, str] = {PRICE_CALIBER_BY_SOURCE_MARKET: dict[tuple[str, str], str] = {# Tushare publishes no HK adjustment-factor series, so its HK path is raw.("tushare", "hk_equity"): "raw",- # Tencent's HK series is unadjusted despite the qfq request parameter: its- # qfq and hfq replies are identical to its own day series on 00939.HK and- # 00700.HK, over a window where eastmoney's adjusted HK series differs from- # raw, so the actions exist and this source does not apply them (#1493).+ # Tencent serves no adjusted series for HK at all: its fqkline reply carries+ # only "day" (never "qfqday"/"hfqday") for HK symbols, so the loader's+ # ``qfqday or day`` fallback silently serves unadjusted bars and the `,qfq`+ # request parameter changes nothing. Checked on 00939.HK and 00700.HK against+ # eastmoney, whose adjusted HK series does differ from its raw one, so the+ # actions exist and are simply not served here (#1493).("tencent", "hk_equity"): "raw",}diff --git a/agent/src/tools/market_data_tool.py b/agent/src/tools/market_data_tool.pyindex 2242f8645..7a79521fb 100644--- a/agent/src/tools/market_data_tool.py+++ b/agent/src/tools/market_data_tool.py@@ -99,7 +99,10 @@ class MarketDataTool(BaseTool):"null=undeclared) before interpreting or comparing volume values. Price caliber ""is source-dependent too (some sources adjust for splits/dividends, others serve ""raw quotes); read _provenance.adjustment ('raw' / 'split' / 'split_dividend' / "- "'na' / 'unknown') before comparing price levels across symbols."+ "'split_dividend_additive' / 'na' / 'unknown') before comparing price levels "+ "across symbols. 'split_dividend_additive' (Tencent's A-share qfq) adjusts "+ "dividends by shifting the price level rather than scaling it, so it is not on "+ "the same scale as 'split_dividend'.")parameters = {"type": "object",