diff --git a/config/strategies/rotation.yaml b/config/strategies/rotation.yaml index 943ceec..632d2c2 100644 --- a/config/strategies/rotation.yaml +++ b/config/strategies/rotation.yaml @@ -14,10 +14,6 @@ code_list: name: "中证红利低波" etf: "512890.SH" market: "A" - "000015.SH": - name: "上证红利" - etf: "510880.SH" - market: "A" # 全球市场 "NDX": @@ -50,6 +46,10 @@ code_list: name: "原油" etf: "160723.SZ" market: "COMMODITY" + "CU.SHF": + name: "有色金属" + etf: "159980.SZ" + market: "COMMODITY" "931862.CSI": name: "30年国债" etf: "511090.SH" diff --git a/core/datasource/hybrid_source.py b/core/datasource/hybrid_source.py index 3c6fb19..6f3d24e 100644 --- a/core/datasource/hybrid_source.py +++ b/core/datasource/hybrid_source.py @@ -135,6 +135,7 @@ class HybridDataSource: # 期货代码映射 (代码 -> Tushare格式) FUTURES_CODE_MAP = { "AU.SHF": "AU.SHF", # 上海期货交易所黄金主力合约 + "CU.SHF": "CU.SHF", # 上海期货交易所铜主力合约 } def __init__(self, ssh_config: Optional[dict] = None, use_cache: bool = True): diff --git a/scripts/ab_test_iterations.py b/scripts/ab_test_iterations.py index e778a0e..8cef73c 100644 --- a/scripts/ab_test_iterations.py +++ b/scripts/ab_test_iterations.py @@ -28,7 +28,7 @@ ORIGINAL_POOL = { "399986.SZ": {"name": "中证银行", "market": "A", "etf": "516310.SH"}, "399997.SZ": {"name": "中证白酒", "market": "A", "etf": "512690.SH"}, "399989.SZ": {"name": "中证医疗", "market": "A", "etf": "512170.SH"}, - "399395.SZ": {"name": "国证有色", "market": "A", "etf": "159880.SZ"}, + "399395.SZ": {"name": "国证有色", "market": "COMMODITY", "etf": "159880.SZ"}, "399998.SZ": {"name": "中证煤炭", "market": "A", "etf": "515220.SH"}, "399967.SZ": {"name": "中证军工", "market": "A", "etf": "512660.SH"}, "HSTECH.HK": {"name": "恒生科技", "market": "HK", "etf": "513180.SH"},