13171317 }
13181318 }
13191319 </ style >
1320+
1321+ <!-- Generated by build_platform_config.py -->
1322+ <!-- Generated by build_platform_config.py from platform-config.json -->
1323+ < script id ="platform-config ">
1324+ window . __PLATFORM_CONFIG__ = { "longbridge" : { "dry_run_only" : false , "margin_policy" : true , "reserved_cash" : true , "income_layer" : true , "option_overlay" : true , "dca" : true , "execution_mode" : "live" , "service_name" : "" , "default_execution_mode" : "live" } , "ibkr" : { "dry_run_only" : false , "margin_policy" : true , "reserved_cash" : true , "income_layer" : true , "option_overlay" : true , "dca" : false , "execution_mode" : "live" , "service_name" : "" , "default_execution_mode" : "live" } , "schwab" : { "dry_run_only" : false , "margin_policy" : true , "reserved_cash" : true , "income_layer" : true , "option_overlay" : true , "dca" : true , "execution_mode" : "live" , "service_name" : "charles-schwab-quant-service" , "default_execution_mode" : "live" } , "firstrade" : { "dry_run_only" : false , "margin_policy" : true , "reserved_cash" : true , "income_layer" : true , "option_overlay" : true , "dca" : true , "execution_mode" : "live" , "service_name" : "firstrade-quant-service" , "default_execution_mode" : "live" } , "qmt" : { "dry_run_only" : true , "margin_policy" : false , "reserved_cash" : false , "income_layer" : false , "option_overlay" : false , "dca" : false , "execution_mode" : "paper" , "service_name" : "qmt-quant-service" , "default_execution_mode" : "paper" } , "binance" : { "dry_run_only" : false , "margin_policy" : false , "reserved_cash" : false , "income_layer" : false , "option_overlay" : false , "dca" : true , "execution_mode" : "live" , "service_name" : "" , "default_execution_mode" : "live" } } ;
1325+ window . __DEFAULT_ACCOUNT_OPTIONS__ = { "longbridge" : [ { "key" : "preview" , "label" : "LongBridge" , "target_name" : "preview" , "supported_domains" : [ "us_equity" , "hk_equity" ] , "cash_currency" : "USD" , "default_strategy_profile" : "tqqq_growth_income" , "default_execution_mode" : "live" , "reserved_cash_ratio" : "0.03" , "service_name" : "" } ] , "ibkr" : [ { "key" : "preview" , "label" : "IBKR" , "target_name" : "preview" , "supported_domains" : [ "us_equity" , "hk_equity" ] , "cash_currency" : "USD" , "default_strategy_profile" : "soxl_soxx_trend_income" , "default_execution_mode" : "live" , "reserved_cash_ratio" : "0.03" , "service_name" : "" } ] , "schwab" : [ { "key" : "preview" , "label" : "Schwab" , "target_name" : "preview" , "supported_domains" : [ "us_equity" ] , "cash_currency" : "USD" , "default_strategy_profile" : "soxl_soxx_trend_income" , "default_execution_mode" : "live" , "min_reserved_cash_usd" : "150" , "reserved_cash_ratio" : "0.03" , "service_name" : "charles-schwab-quant-service" } ] , "firstrade" : [ { "key" : "preview" , "label" : "Firstrade" , "target_name" : "preview" , "supported_domains" : [ "us_equity" ] , "cash_currency" : "USD" , "default_strategy_profile" : "ibit_smart_dca" , "default_execution_mode" : "live" , "reserved_cash_ratio" : "0.03" , "service_name" : "firstrade-quant-service" } ] , "qmt" : [ { "key" : "default" , "label" : "QMT" , "target_name" : "default" , "supported_domains" : [ "cn_equity" ] , "cash_currency" : "CNY" , "default_strategy_profile" : "cn_industry_etf_rotation" , "service_name" : "qmt-quant-service" , "default_execution_mode" : "paper" } ] , "binance" : [ { "key" : "default" , "label" : "Binance" , "target_name" : "default" , "supported_domains" : [ "crypto" ] , "cash_currency" : "USD" , "default_strategy_profile" : "crypto_live_pool_rotation" , "service_name" : "" , "default_execution_mode" : "live" } ] } ;
1326+ window . __DCA_PROFILE_DEFAULTS__ = { "nasdaq_sp500_smart_dca" : { "defaultMode" : "fixed" , "defaultBaseInvestmentUsd" : "1000" } , "ibit_smart_dca" : { "defaultMode" : "fixed" , "defaultBaseInvestmentUsd" : "1000" } , "crypto_btc_dca" : { "defaultMode" : "fixed" , "defaultBaseInvestmentUsd" : "100" } } ;
1327+ window . __INCOME_LAYER_DEFAULTS__ = { "tqqq_growth_income" : { "startUsd" : 250000 , "maxRatio" : "0.55" , "allocations" : { "SCHD" : 0.3 , "DGRO" : 0.2 , "SGOV" : 0.4 , "SPYI" : 0.08 , "QQQI" : 0.02 } } , "soxl_soxx_trend_income" : { "startUsd" : 150000 , "maxRatio" : "0.95" , "allocations" : { "SCHD" : 0.15 , "DGRO" : 0.1 , "SGOV" : 0.7 , "SPYI" : 0.04 , "QQQI" : 0.01 } } , "global_etf_rotation" : { "startUsd" : 500000 , "maxRatio" : "0.15" , "allocations" : { "SCHD" : 0.4 , "DGRO" : 0.25 , "SGOV" : 0.3 , "SPYI" : 0.05 } } , "russell_top50_leader_rotation" : { "startUsd" : 300000 , "maxRatio" : "0.25" , "allocations" : { "SCHD" : 0.45 , "DGRO" : 0.3 , "SGOV" : 0.25 } } , "us_equity_combo" : { "startUsd" : 300000 , "maxRatio" : "0.25" , "allocations" : { "SCHD" : 0.25 , "DGRO" : 0.25 , "SGOV" : 0.2 , "SPYI" : 0.15 , "QQQI" : 0.15 } } } ;
1328+ window . __OPTION_OVERLAY_DEFAULTS__ = { "tqqq_growth_income" : { "liveGate" : "promotion_required" , "liveStatus" : "research_only" , "families" : [ { "family" : "growth" , "recipe" : "tqqq_leaps_growth_v1" , "startUsd" : "250000" , "ratio" : "0.03" , "ratioKind" : "budget" } ] } , "soxl_soxx_trend_income" : { "liveGate" : "promotion_required" , "liveStatus" : "research_only" , "families" : [ { "family" : "income" , "recipe" : "soxx_put_credit_spread_income_v1" , "startUsd" : "150000" , "ratio" : "0.01" , "ratioKind" : "risk" } ] } , "global_etf_rotation" : { "liveGate" : "promotion_required" , "liveStatus" : "research_only" , "families" : [ { "family" : "growth" , "recipe" : "spy_leaps_growth_v1" , "startUsd" : "500000" , "ratio" : "0.015" , "ratioKind" : "budget" } ] } , "russell_top50_leader_rotation" : { "liveGate" : "promotion_required" , "liveStatus" : "research_only" , "families" : [ { "family" : "growth" , "recipe" : "spy_leaps_growth_v1" , "startUsd" : "300000" , "ratio" : "0.015" , "ratioKind" : "budget" } ] } , "us_equity_combo" : { "liveGate" : "promotion_required" , "liveStatus" : "research_only" , "families" : [ { "family" : "growth" , "recipe" : "spy_leaps_growth_v1" , "startUsd" : "300000" , "ratio" : "0.015" , "ratioKind" : "budget" } ] } } ;
1329+ </ script >
13201330</ head >
13211331< body class ="app-loading ">
13221332 < header class ="topbar ">
@@ -1525,7 +1535,7 @@ <h2 data-i18n="summary">切换摘要</h2>
15251535 // Alias for backward compatibility
15261536 const defaultRepositories = platformRepositories ;
15271537
1528- const defaultAccountOptions = {
1538+ const defaultAccountOptions = window . __DEFAULT_ACCOUNT_OPTIONS__ || {
15291539 binance : [ { "key" : "default" , "label" : "Binance" , "target_name" : "default" , "cash_currency" : "USD" , "default_strategy_profile" : "crypto_equity_combo" , "supported_domains" : [ "crypto" ] } ] ,
15301540 firstrade : [ { "key" : "preview" , "label" : "Firstrade" , "target_name" : "preview" , "supported_domains" : [ "us_equity" ] , "cash_currency" : "USD" , "default_execution_mode" : "live" , "service_name" : "firstrade-quant-service" } ] ,
15311541 ibkr : [ { "key" : "preview" , "label" : "IBKR" , "target_name" : "preview" , "supported_domains" : [ "us_equity" , "hk_equity" ] , "cash_currency" : "USD" , "default_execution_mode" : "live" } ] ,
@@ -1541,7 +1551,7 @@ <h2 data-i18n="summary">切换摘要</h2>
15411551 us_equity : { zh : "美股" , en : "US Equity" } ,
15421552 } ;
15431553
1544- const platformConfig = {
1554+ const platformConfig = window . __PLATFORM_CONFIG__ || {
15451555 binance : {
15461556 dry_run_only : false ,
15471557 margin_policy : false ,
@@ -1655,7 +1665,7 @@ <h2 data-i18n="summary">切换摘要</h2>
16551665 const incomeLayerEnabledVariable = "INCOME_LAYER_ENABLED" ;
16561666 const incomeLayerStartUsdVariable = "INCOME_LAYER_START_USD" ;
16571667 const incomeLayerMaxRatioVariable = "INCOME_LAYER_MAX_RATIO" ;
1658- const dcaProfileDefaults = {
1668+ const dcaProfileDefaults = window . __DCA_PROFILE_DEFAULTS__ || {
16591669 nasdaq_sp500_smart_dca : { defaultMode : "fixed" , defaultBaseInvestmentUsd : "1000" } ,
16601670 ibit_smart_dca : { defaultMode : "fixed" , defaultBaseInvestmentUsd : "1000" } ,
16611671 crypto_btc_dca : { defaultMode : "fixed" , defaultBaseInvestmentUsd : "100" } ,
@@ -1733,8 +1743,8 @@ <h2 data-i18n="summary">切换摘要</h2>
17331743 maxRatio : "0.25" ,
17341744 allocations : { SCHD : 0.25 , DGRO : 0.25 , SGOV : 0.20 , SPYI : 0.15 , QQQI : 0.15 } ,
17351745 } } ;
1736- let incomeLayerDefaults = { } ;
1737- const fallbackOptionOverlayDefaults = {
1746+ let incomeLayerDefaults = window . __INCOME_LAYER_DEFAULTS__ || { } ;
1747+ const fallbackOptionOverlayDefaults = window . __OPTION_OVERLAY_DEFAULTS__ || {
17381748 tqqq_growth_income : {
17391749 liveGate : "promotion_required" ,
17401750 liveStatus : "research_only" ,
0 commit comments