diff --git a/config/strategies/rotation.yaml b/config/strategies/rotation.yaml index 36a237a..2a8ca03 100644 --- a/config/strategies/rotation.yaml +++ b/config/strategies/rotation.yaml @@ -23,14 +23,14 @@ code_list: name: "创业板指" etf: "159915.SZ" # 易方达创业板ETF market: "A" - "000015.SH": - name: "上证红利" - etf: "510880.SH" # 华泰柏瑞红利ETF + "000922.CSI": + name: "中证红利" + etf: "515180.SH" # 红利ETF博时 market: "A" # 金融 "399986.SZ": name: "中证银行" - etf: "512800.SH" # 华宝银行ETF + etf: "516310.SH" # 华宝银行ETF market: "A" # 消费 "399997.SZ": diff --git a/core/datasource/hybrid_source.py b/core/datasource/hybrid_source.py index 4d298f8..ba6741a 100644 --- a/core/datasource/hybrid_source.py +++ b/core/datasource/hybrid_source.py @@ -139,8 +139,8 @@ class HybridDataSource: self._tushare_token: Optional[str] = None def _is_china_index(self, code: str) -> bool: - """判断是否为中国A股指数""" - return code.endswith(".SH") or code.endswith(".SZ") or code.endswith(".SS") + """判断是否为中国A股指数(包括中证指数.CSI)""" + return code.endswith(".SH") or code.endswith(".SZ") or code.endswith(".SS") or code.endswith(".CSI") def _is_crypto(self, code: str) -> bool: """判断是否为加密货币"""