From 4a3cf97dbc6fc82d9ba1f341ce70028b6899e6cb Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:52:41 +0800 Subject: [PATCH] Localize mega-cap strategy status name --- notifications/telegram.py | 4 ++-- pyproject.toml | 4 ++-- requirements.txt | 4 ++-- scripts/print_strategy_profile_status.py | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/notifications/telegram.py b/notifications/telegram.py index be6b729..27ddc4a 100644 --- a/notifications/telegram.py +++ b/notifications/telegram.py @@ -252,7 +252,7 @@ def format_small_account_cash_substitution_notes( "strategy_name_russell_1000_multi_factor_defensive": "罗素1000多因子", "strategy_name_tech_communication_pullback_enhancement": "科技通信回调增强", "strategy_name_qqq_tech_enhancement": "科技通信回调增强", - "strategy_name_mega_cap_leader_rotation_top50_balanced": "Mega Cap Top50 平衡龙头轮动", + "strategy_name_mega_cap_leader_rotation_top50_balanced": "美股超大盘50强平衡龙头轮动", "skip_reason_below_trade_threshold": "低于调仓阈值", "skip_reason_quote_unavailable": "无法获取报价", "skip_reason_sell_quantity_zero": "卖出股数为0", @@ -393,7 +393,7 @@ def format_small_account_cash_substitution_notes( "strategy_name_russell_1000_multi_factor_defensive": "Russell 1000 Multi-Factor Defensive", "strategy_name_tech_communication_pullback_enhancement": "Tech Communication Pullback Enhancement", "strategy_name_qqq_tech_enhancement": "Tech Communication Pullback Enhancement", - "strategy_name_mega_cap_leader_rotation_top50_balanced": "Mega Cap Top50 Balanced Leader Rotation", + "strategy_name_mega_cap_leader_rotation_top50_balanced": "Mega Cap Leader Rotation Top50 Balanced", "skip_reason_below_trade_threshold": "below trade threshold", "skip_reason_quote_unavailable": "quote unavailable", "skip_reason_sell_quantity_zero": "sell quantity rounds to 0", diff --git a/pyproject.toml b/pyproject.toml index f1375f9..d8cb341 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,8 +14,8 @@ authors = [ ] dependencies = [ "firstrade==0.0.39", - "quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@9d9682533578c7e5a9e02ea80040b7014898e4dd", - "us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@c7a1ae5e804b720f2ab6412451b9e8ee3341ff20", + "quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@2a711adf60b585ca02932bab9ee1bac7ce1df7c6", + "us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@085f6010883b3f7c66a1c16f96749c0251410f93", "google-cloud-storage", "requests", ] diff --git a/requirements.txt b/requirements.txt index dbb2379..f054f14 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ flask gunicorn firstrade==0.0.39 -quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@9d9682533578c7e5a9e02ea80040b7014898e4dd -us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@c7a1ae5e804b720f2ab6412451b9e8ee3341ff20 +quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@2a711adf60b585ca02932bab9ee1bac7ce1df7c6 +us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@085f6010883b3f7c66a1c16f96749c0251410f93 google-cloud-storage requests pytest diff --git a/scripts/print_strategy_profile_status.py b/scripts/print_strategy_profile_status.py index c85607a..2b10399 100755 --- a/scripts/print_strategy_profile_status.py +++ b/scripts/print_strategy_profile_status.py @@ -26,6 +26,7 @@ def main(argv: list[str] | None = None) -> int: headers = [ "Canonical profile", "Display name", + "Chinese display name", "Eligible", "Enabled", "Domain", @@ -38,6 +39,7 @@ def main(argv: list[str] | None = None) -> int: [ str(row["canonical_profile"]), str(row["display_name"]), + str(row.get("display_name_zh", "")), "Yes" if row["eligible"] else "No", "Yes" if row["enabled"] else "No", str(row["domain"]),