feat: add Tushare Qlib data bridge

This commit is contained in:
2026-07-26 13:41:24 +08:00
parent 48c5f64bbd
commit e5911ca454
15 changed files with 1804 additions and 8 deletions
+18
View File
@@ -79,6 +79,17 @@ CAPABILITY_MATRIX: Dict[str, Dict[str, Any]] = {
"not target/order parity"
),
},
"tushare_local_qlib": {
"backtest": True,
"hosted": False,
"live_orders": False,
"safe_default": True,
"market_scope": (
"completed checksummed local Tushare partitions converted into "
"an immutable Qlib provider; source completeness and adjustment "
"gates remain explicit"
),
},
}
@@ -162,6 +173,12 @@ def probe_capabilities(
"qlib_momentum_and_alpha158_cli": (
root / "platforms/qlib_runner.py"
).is_file(),
"tushare_qlib_adapter": (
root / "adapters/tushare_local.py"
).is_file(),
"tushare_qlib_cli": (
root / "tools/tushare_qlib.py"
).is_file(),
"qmt_shadow_planner": (
root / "src/quant60/qmt_shadow.py"
).is_file(),
@@ -172,6 +189,7 @@ def probe_capabilities(
"optional_runtimes": {
"jqdatasdk": _module_probe("jqdatasdk", deep),
"cvxpy": _module_probe("cvxpy", deep),
"pyarrow": _module_probe("pyarrow", deep),
"qlib": _module_probe("qlib", deep),
"xtquant": _module_probe("xtquant", deep),
"xtquant.qmttools": _module_probe("xtquant.qmttools", deep),