Skip to content

Commit b776110

Browse files
Pigbibicodex
andcommitted
Add strategy governance lifecycle controls
Co-Authored-By: Codex <noreply@openai.com>
1 parent 8468856 commit b776110

23 files changed

Lines changed: 1989 additions & 215 deletions

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
python3 python/scripts/build_config.py --check
7777
python3 python/scripts/build_config.py
7878
python3 python/scripts/sync_strategy_switch_page_asset.py
79-
git diff --exit-code -- web/strategy-switch-console/page_asset.js web/strategy-switch-console/strategy_profiles_asset.js web/strategy-switch-console/app_css.js web/strategy-switch-console/app_js.js
79+
git diff --exit-code -- web/strategy-switch-console/config.js web/strategy-switch-console/index.html web/strategy-switch-console/page_asset.js web/strategy-switch-console/strategy_profiles_asset.js web/strategy-switch-console/app_css.js web/strategy-switch-console/app_js.js
8080
jq empty web/strategy-switch-console/strategy-profiles.example.json
8181
node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs
8282
sed -n '/<script>/,/<\/script>/p' web/strategy-switch-console/index.html | sed '1d;$d' | node --check --input-type=commonjs
Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
22
"$schema": "../../../schemas/runtime-target.schema.json",
33
"target_id": "binance/crypto_combo",
4-
"description": "Binance target for crypto_equity_combo R5 cash-cap shadow parameters (50/50 risk-on, 40/20 neutral, 25/0 hard risk-off).",
4+
"description": "Binance live target for the runtime-enabled crypto_live_pool_rotation profile.",
55
"github": {
66
"repository": "QuantStrategyLab/BinancePlatform",
77
"variable_scope": "repository"
88
},
99
"runtime_target": {
1010
"platform_id": "binance",
11-
"strategy_profile": "crypto_equity_combo",
11+
"strategy_profile": "crypto_live_pool_rotation",
1212
"dry_run_only": false,
1313
"deployment_selector": "binance",
14-
"account_selector": ["binance"],
14+
"account_selector": [
15+
"binance"
16+
],
1517
"account_scope": "GLOBAL",
1618
"service_name": "binance-quant-service",
1719
"execution_mode": "live",
@@ -22,18 +24,5 @@
2224
"precheck_time": "55 5 * * *"
2325
}
2426
},
25-
"extra_variables": {
26-
"BTC_WEIGHT": "0.50",
27-
"TREND_WEIGHT": "0.50",
28-
"DYNAMIC_MODE": "true",
29-
"DYNAMIC_REGIME_MODE": "cash_cap",
30-
"DYNAMIC_REGIME_OFF_CUT": "0.00",
31-
"DYNAMIC_HARD_SMA200_RATIO": "0.95",
32-
"DYNAMIC_HARD_MA200_SLOPE": "0.00",
33-
"DYNAMIC_SOFT_SMA200_RATIO": "1.00",
34-
"DYNAMIC_HARD_BTC_WEIGHT": "0.25",
35-
"DYNAMIC_HARD_TREND_WEIGHT": "0.00",
36-
"DYNAMIC_SOFT_BTC_WEIGHT": "0.40",
37-
"DYNAMIC_SOFT_TREND_WEIGHT": "0.20"
38-
}
27+
"extra_variables": {}
3928
}

examples/targets/ibkr/us_combo.example.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"$schema": "../../../schemas/runtime-target.schema.json",
33
"target_id": "ibkr/us_combo",
4-
"description": "IBKR target for us_equity_combo (50/30/20 Global ETF/Russell/DCA with dynamic regime adjustment).",
4+
"description": "IBKR paper target for us_equity_combo shadow validation.",
55
"github": {
66
"repository": "QuantStrategyLab/InteractiveBrokersPlatform",
77
"variable_scope": "repository"
88
},
99
"runtime_target": {
1010
"platform_id": "ibkr",
1111
"strategy_profile": "us_equity_combo",
12-
"dry_run_only": false,
12+
"dry_run_only": true,
1313
"deployment_selector": "ibkr",
14-
"account_selector": ["ibkr"],
14+
"account_selector": [
15+
"ibkr"
16+
],
1517
"account_scope": "US",
1618
"service_name": "ibkr-quant-service",
17-
"execution_mode": "live",
19+
"execution_mode": "paper",
1820
"scheduler": {
1921
"timezone": "America/New_York",
2022
"main_time": "30 16 * * *",

examples/targets/longbridge/hk_combo.example.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"$schema": "../../../schemas/runtime-target.schema.json",
33
"target_id": "longbridge/hk_combo",
4-
"description": "LongBridge SG target for hk_equity_combo (60/40 ETF momentum/dividend quality with dynamic regime adjustment).",
4+
"description": "LongBridge dry-run target for hk_equity_combo research validation.",
55
"github": {
66
"repository": "QuantStrategyLab/LongBridgePlatform",
77
"variable_scope": "repository"
88
},
99
"runtime_target": {
1010
"platform_id": "longbridge",
1111
"strategy_profile": "hk_equity_combo",
12-
"dry_run_only": false,
12+
"dry_run_only": true,
1313
"deployment_selector": "longbridge_sg",
14-
"account_selector": ["longbridge_sg"],
14+
"account_selector": [
15+
"longbridge_sg"
16+
],
1517
"account_scope": "HK",
1618
"service_name": "longbridge-quant-service",
17-
"execution_mode": "live",
19+
"execution_mode": "dry_run",
1820
"scheduler": {
1921
"timezone": "Asia/Hong_Kong",
2022
"main_time": "45 16 * * *",

examples/targets/longbridge/us_combo_leveraged.example.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"$schema": "../../../schemas/runtime-target.schema.json",
33
"target_id": "longbridge/us_combo_leveraged",
4-
"description": "LongBridge SG target for us_equity_combo_leveraged (40/20/40 TQQQ/SOXL/BOXX with SPY MA200 dynamic adjustment).",
4+
"description": "LongBridge paper target for us_equity_combo_leveraged shadow validation.",
55
"github": {
66
"repository": "QuantStrategyLab/LongBridgePlatform",
77
"variable_scope": "repository"
88
},
99
"runtime_target": {
1010
"platform_id": "longbridge",
1111
"strategy_profile": "us_equity_combo_leveraged",
12-
"dry_run_only": false,
12+
"dry_run_only": true,
1313
"deployment_selector": "longbridge_sg",
14-
"account_selector": ["longbridge_sg"],
14+
"account_selector": [
15+
"longbridge_sg"
16+
],
1517
"account_scope": "US",
1618
"service_name": "longbridge-quant-service",
17-
"execution_mode": "live",
19+
"execution_mode": "paper",
1820
"scheduler": {
1921
"timezone": "Asia/Singapore",
2022
"main_time": "30 22 * * 1-5",

0 commit comments

Comments
 (0)