From 06657450c106781e28e58c065133535841110299 Mon Sep 17 00:00:00 2001
From: Pigbibi <20649888+Pigbibi@users.noreply.github.com>
Date: Sat, 20 Jun 2026 01:03:24 +0800
Subject: [PATCH] Rename Russell Top50 runtime profile
---
internal_dependency_matrix.json | 8 ++++----
scripts/build_runtime_switch.py | 4 ++--
tests/strategy_switch_worker_validation.mjs | 4 ++--
web/strategy-switch-console/account-options.example.json | 4 ++--
web/strategy-switch-console/index.html | 6 +++---
web/strategy-switch-console/page_asset.js | 2 +-
.../strategy-profiles.example.json | 8 ++++----
web/strategy-switch-console/strategy_profiles_asset.js | 2 +-
8 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/internal_dependency_matrix.json b/internal_dependency_matrix.json
index 2515b0f..3b24cd4 100644
--- a/internal_dependency_matrix.json
+++ b/internal_dependency_matrix.json
@@ -62,7 +62,7 @@
"path": "pyproject.toml",
"package": "us-equity-strategies",
"source_repo": "UsEquityStrategies",
- "ref": "d789c5cacea6b82cccc0202561bd53482294b14a"
+ "ref": "031a5bbd5a5ec64a57225a2b24f6569359dc9b11"
},
{
"consumer_repo": "FirstradePlatform",
@@ -76,7 +76,7 @@
"path": "requirements.txt",
"package": "us-equity-strategies",
"source_repo": "UsEquityStrategies",
- "ref": "d789c5cacea6b82cccc0202561bd53482294b14a"
+ "ref": "031a5bbd5a5ec64a57225a2b24f6569359dc9b11"
},
{
"consumer_repo": "HkEquityStrategies",
@@ -97,7 +97,7 @@
"path": "requirements.txt",
"package": "us-equity-strategies",
"source_repo": "UsEquityStrategies",
- "ref": "d789c5cacea6b82cccc0202561bd53482294b14a"
+ "ref": "031a5bbd5a5ec64a57225a2b24f6569359dc9b11"
},
{
"consumer_repo": "InteractiveBrokersPlatform",
@@ -118,7 +118,7 @@
"path": "requirements.txt",
"package": "us-equity-strategies",
"source_repo": "UsEquityStrategies",
- "ref": "d789c5cacea6b82cccc0202561bd53482294b14a"
+ "ref": "031a5bbd5a5ec64a57225a2b24f6569359dc9b11"
},
{
"consumer_repo": "LongBridgePlatform",
diff --git a/scripts/build_runtime_switch.py b/scripts/build_runtime_switch.py
index 4e413f0..ea5827a 100644
--- a/scripts/build_runtime_switch.py
+++ b/scripts/build_runtime_switch.py
@@ -28,7 +28,7 @@
{
"tqqq_growth_income",
"global_etf_rotation",
- "russell_top50_leader_rotation_aggressive",
+ "russell_top50_leader_rotation",
}
)
US_DAILY_SCHEDULER = {
@@ -64,7 +64,7 @@
STRATEGY_SCHEDULER_PROFILES = {
"nasdaq_sp500_smart_dca": US_DCA_SCHEDULER,
"ibit_smart_dca": US_DCA_SCHEDULER,
- "russell_top50_leader_rotation_aggressive": US_SNAPSHOT_SCHEDULER,
+ "russell_top50_leader_rotation": US_SNAPSHOT_SCHEDULER,
"hk_low_vol_dividend_quality_snapshot": HK_SNAPSHOT_SCHEDULER,
}
PLATFORM_DRY_RUN_VARIABLES = {
diff --git a/tests/strategy_switch_worker_validation.mjs b/tests/strategy_switch_worker_validation.mjs
index 783262c..2d3d15b 100644
--- a/tests/strategy_switch_worker_validation.mjs
+++ b/tests/strategy_switch_worker_validation.mjs
@@ -682,10 +682,10 @@ globalThis.fetch = async (url) => {
targets: [
{
service: "longbridge-quant-sg-service",
- strategy_profile: "russell_top50_leader_rotation_aggressive",
+ strategy_profile: "russell_top50_leader_rotation",
runtime_target: {
platform_id: "longbridge",
- strategy_profile: "russell_top50_leader_rotation_aggressive",
+ strategy_profile: "russell_top50_leader_rotation",
account_scope: "SG",
service_name: "longbridge-quant-sg-service",
execution_mode: "live",
diff --git a/web/strategy-switch-console/account-options.example.json b/web/strategy-switch-console/account-options.example.json
index c4fe144..5f8444f 100644
--- a/web/strategy-switch-console/account-options.example.json
+++ b/web/strategy-switch-console/account-options.example.json
@@ -22,7 +22,7 @@
"label": "paper",
"target_name": "paper",
"account_selector": "PAPER",
- "default_strategy_profile": "russell_top50_leader_rotation_aggressive",
+ "default_strategy_profile": "russell_top50_leader_rotation",
"supported_domains": ["us_equity", "hk_equity"]
}
],
@@ -80,7 +80,7 @@
"label": "default",
"target_name": "default",
"cash_currency": "USD",
- "default_strategy_profile": "russell_top50_leader_rotation_aggressive",
+ "default_strategy_profile": "russell_top50_leader_rotation",
"supported_domains": ["us_equity"]
}
]
diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html
index 400c5d1..ff3664c 100644
--- a/web/strategy-switch-console/index.html
+++ b/web/strategy-switch-console/index.html
@@ -954,7 +954,7 @@
切换摘要
{ profile: "nasdaq_sp500_smart_dca", label: "Nasdaq 100 / S&P 500 DCA", label_en: "Nasdaq 100 / S&P 500 DCA", label_zh: "纳指100 / 标普500 定投", domain: "us_equity", runtime_enabled: true, dca_enabled: true, dca_default_mode: "fixed", dca_default_base_investment_usd: "1000" },
{ profile: "ibit_smart_dca", label: "IBIT Bitcoin ETF DCA", label_en: "IBIT Bitcoin ETF DCA", label_zh: "IBIT 比特币定投", domain: "us_equity", runtime_enabled: true, dca_enabled: true, dca_default_mode: "fixed", dca_default_base_investment_usd: "1000" },
{ profile: "global_etf_rotation", label: "Global ETF Rotation", label_en: "Global ETF Rotation", label_zh: "全球 ETF 轮动", domain: "us_equity", runtime_enabled: true },
- { profile: "russell_top50_leader_rotation_aggressive", label: "Russell Top50 Leader Rotation Aggressive", label_en: "Russell Top50 Leader Rotation Aggressive", label_zh: "罗素 Top50 领涨轮动(激进)", domain: "us_equity", runtime_enabled: true },
+ { profile: "russell_top50_leader_rotation", label: "Russell Top50 Leader Rotation", label_en: "Russell Top50 Leader Rotation", label_zh: "罗素 Top50 领涨轮动", domain: "us_equity", runtime_enabled: true },
{ profile: "hk_dividend_gold_defensive_rotation", label: "HK Dividend-Gold Defensive Rotation", label_en: "HK Dividend-Gold Defensive Rotation", label_zh: "港股红利黄金防御轮动", domain: "hk_equity", runtime_enabled: true },
{ profile: "hk_global_etf_tactical_rotation", label: "HK Global ETF Tactical Rotation", label_en: "HK Global ETF Tactical Rotation", label_zh: "港股全球 ETF 战术轮动", domain: "hk_equity", runtime_enabled: true },
{ profile: "hk_low_vol_dividend_quality_snapshot", label: "HK Low-Vol Dividend Quality Snapshot", label_en: "HK Low-Vol Dividend Quality Snapshot", label_zh: "港股低波红利质量快照", domain: "hk_equity", runtime_enabled: true },
@@ -966,7 +966,7 @@ 切换摘要
nasdaq_sp500_smart_dca: { zh: "纳指100 / 标普500 定投", en: "Nasdaq 100 / S&P 500 DCA" },
ibit_smart_dca: { zh: "IBIT 比特币定投", en: "IBIT Bitcoin ETF DCA" },
global_etf_rotation: { zh: "全球 ETF 轮动", en: "Global ETF Rotation" },
- russell_top50_leader_rotation_aggressive: { zh: "罗素 Top50 领涨轮动(激进)", en: "Russell Top50 Leader Rotation Aggressive" },
+ russell_top50_leader_rotation: { zh: "罗素 Top50 领涨轮动", en: "Russell Top50 Leader Rotation" },
hk_dividend_gold_defensive_rotation: { zh: "港股红利黄金防御轮动", en: "HK Dividend-Gold Defensive Rotation" },
hk_global_etf_tactical_rotation: { zh: "港股全球 ETF 战术轮动", en: "HK Global ETF Tactical Rotation" },
hk_low_vol_dividend_quality_snapshot: { zh: "港股低波红利质量快照", en: "HK Low-Vol Dividend Quality Snapshot" },
@@ -988,7 +988,7 @@ 切换摘要
maxRatio: "0.15",
allocations: { SCHD: 0.40, DGRO: 0.25, SGOV: 0.30, SPYI: 0.05 },
},
- russell_top50_leader_rotation_aggressive: {
+ russell_top50_leader_rotation: {
startUsd: 300000,
maxRatio: "0.25",
allocations: { SCHD: 0.45, DGRO: 0.30, SGOV: 0.25 },
diff --git a/web/strategy-switch-console/page_asset.js b/web/strategy-switch-console/page_asset.js
index fa39207..6e2ce51 100644
--- a/web/strategy-switch-console/page_asset.js
+++ b/web/strategy-switch-console/page_asset.js
@@ -1,2 +1,2 @@
// Generated by scripts/sync_strategy_switch_page_asset.py; do not edit by hand.
-export const PAGE_HTML = "\n\n\n \n \n \n QuantRuntimeSettings Strategy Switch\n \n\n\n \n \n
策略切换
\n
选平台、目标账号和策略,一次执行完成切换。
\n
\n \n \n\n \n \n
初始化控制台\n
读取策略配置
\n
正在读取登录状态、账号配置和当前状态。
\n
\n
\n \n\n \n \n\n \n \n
\n 当前平台\n \n
\n\n
登录后查看账号配置。
\n\n
\n\n
\n
\n
登录后才可执行切换。
\n
\n
\n
\n\n \n \n \n\n \n\n\n";
+export const PAGE_HTML = "\n\n\n \n \n \n QuantRuntimeSettings Strategy Switch\n \n\n\n \n \n
策略切换
\n
选平台、目标账号和策略,一次执行完成切换。
\n
\n \n \n\n \n \n
初始化控制台\n
读取策略配置
\n
正在读取登录状态、账号配置和当前状态。
\n
\n
\n \n\n \n \n\n \n \n
\n 当前平台\n \n
\n\n
登录后查看账号配置。
\n\n
\n\n
\n
\n
登录后才可执行切换。
\n
\n
\n
\n\n \n \n \n\n \n\n\n";
diff --git a/web/strategy-switch-console/strategy-profiles.example.json b/web/strategy-switch-console/strategy-profiles.example.json
index 3270970..8468b5f 100644
--- a/web/strategy-switch-console/strategy-profiles.example.json
+++ b/web/strategy-switch-console/strategy-profiles.example.json
@@ -46,10 +46,10 @@
"runtime_enabled": true
},
{
- "profile": "russell_top50_leader_rotation_aggressive",
- "label": "Russell Top50 Leader Rotation Aggressive",
- "label_en": "Russell Top50 Leader Rotation Aggressive",
- "label_zh": "罗素 Top50 领涨轮动(激进)",
+ "profile": "russell_top50_leader_rotation",
+ "label": "Russell Top50 Leader Rotation",
+ "label_en": "Russell Top50 Leader Rotation",
+ "label_zh": "罗素 Top50 领涨轮动",
"domain": "us_equity",
"runtime_enabled": true
},
diff --git a/web/strategy-switch-console/strategy_profiles_asset.js b/web/strategy-switch-console/strategy_profiles_asset.js
index bfb926e..5ff82fc 100644
--- a/web/strategy-switch-console/strategy_profiles_asset.js
+++ b/web/strategy-switch-console/strategy_profiles_asset.js
@@ -1,2 +1,2 @@
// Generated by scripts/sync_strategy_switch_page_asset.py; do not edit by hand.
-export const DEFAULT_STRATEGY_PROFILES = [{"profile": "tqqq_growth_income", "label": "TQQQ Growth Income", "label_en": "TQQQ Growth Income", "label_zh": "TQQQ 增长收益", "domain": "us_equity", "runtime_enabled": true}, {"profile": "soxl_soxx_trend_income", "label": "SOXL/SOXX Semiconductor Trend Income", "label_en": "SOXL/SOXX Semiconductor Trend Income", "label_zh": "SOXL/SOXX 半导体趋势收益", "domain": "us_equity", "runtime_enabled": true}, {"profile": "nasdaq_sp500_smart_dca", "label": "Nasdaq 100 / S&P 500 DCA", "label_en": "Nasdaq 100 / S&P 500 DCA", "label_zh": "纳指100 / 标普500 定投", "domain": "us_equity", "runtime_enabled": true, "dca_enabled": true, "dca_default_mode": "fixed", "dca_default_base_investment_usd": "1000"}, {"profile": "ibit_smart_dca", "label": "IBIT Bitcoin ETF DCA", "label_en": "IBIT Bitcoin ETF DCA", "label_zh": "IBIT 比特币定投", "domain": "us_equity", "runtime_enabled": true, "dca_enabled": true, "dca_default_mode": "fixed", "dca_default_base_investment_usd": "1000"}, {"profile": "global_etf_rotation", "label": "Global ETF Rotation", "label_en": "Global ETF Rotation", "label_zh": "全球 ETF 轮动", "domain": "us_equity", "runtime_enabled": true}, {"profile": "russell_top50_leader_rotation_aggressive", "label": "Russell Top50 Leader Rotation Aggressive", "label_en": "Russell Top50 Leader Rotation Aggressive", "label_zh": "罗素 Top50 领涨轮动(激进)", "domain": "us_equity", "runtime_enabled": true}, {"profile": "hk_dividend_gold_defensive_rotation", "label": "HK Dividend-Gold Defensive Rotation", "label_en": "HK Dividend-Gold Defensive Rotation", "label_zh": "港股红利黄金防御轮动", "domain": "hk_equity", "runtime_enabled": true}, {"profile": "hk_global_etf_tactical_rotation", "label": "HK Global ETF Tactical Rotation", "label_en": "HK Global ETF Tactical Rotation", "label_zh": "港股全球 ETF 战术轮动", "domain": "hk_equity", "runtime_enabled": true}, {"profile": "hk_low_vol_dividend_quality_snapshot", "label": "HK Low-Vol Dividend Quality Snapshot", "label_en": "HK Low-Vol Dividend Quality Snapshot", "label_zh": "港股低波红利质量快照", "domain": "hk_equity", "runtime_enabled": true}];
+export const DEFAULT_STRATEGY_PROFILES = [{"profile": "tqqq_growth_income", "label": "TQQQ Growth Income", "label_en": "TQQQ Growth Income", "label_zh": "TQQQ 增长收益", "domain": "us_equity", "runtime_enabled": true}, {"profile": "soxl_soxx_trend_income", "label": "SOXL/SOXX Semiconductor Trend Income", "label_en": "SOXL/SOXX Semiconductor Trend Income", "label_zh": "SOXL/SOXX 半导体趋势收益", "domain": "us_equity", "runtime_enabled": true}, {"profile": "nasdaq_sp500_smart_dca", "label": "Nasdaq 100 / S&P 500 DCA", "label_en": "Nasdaq 100 / S&P 500 DCA", "label_zh": "纳指100 / 标普500 定投", "domain": "us_equity", "runtime_enabled": true, "dca_enabled": true, "dca_default_mode": "fixed", "dca_default_base_investment_usd": "1000"}, {"profile": "ibit_smart_dca", "label": "IBIT Bitcoin ETF DCA", "label_en": "IBIT Bitcoin ETF DCA", "label_zh": "IBIT 比特币定投", "domain": "us_equity", "runtime_enabled": true, "dca_enabled": true, "dca_default_mode": "fixed", "dca_default_base_investment_usd": "1000"}, {"profile": "global_etf_rotation", "label": "Global ETF Rotation", "label_en": "Global ETF Rotation", "label_zh": "全球 ETF 轮动", "domain": "us_equity", "runtime_enabled": true}, {"profile": "russell_top50_leader_rotation", "label": "Russell Top50 Leader Rotation", "label_en": "Russell Top50 Leader Rotation", "label_zh": "罗素 Top50 领涨轮动", "domain": "us_equity", "runtime_enabled": true}, {"profile": "hk_dividend_gold_defensive_rotation", "label": "HK Dividend-Gold Defensive Rotation", "label_en": "HK Dividend-Gold Defensive Rotation", "label_zh": "港股红利黄金防御轮动", "domain": "hk_equity", "runtime_enabled": true}, {"profile": "hk_global_etf_tactical_rotation", "label": "HK Global ETF Tactical Rotation", "label_en": "HK Global ETF Tactical Rotation", "label_zh": "港股全球 ETF 战术轮动", "domain": "hk_equity", "runtime_enabled": true}, {"profile": "hk_low_vol_dividend_quality_snapshot", "label": "HK Low-Vol Dividend Quality Snapshot", "label_en": "HK Low-Vol Dividend Quality Snapshot", "label_zh": "港股低波红利质量快照", "domain": "hk_equity", "runtime_enabled": true}];