@@ -534,24 +534,14 @@ async function renderAdminPage(state) {
534534</html>` ;
535535}
536536
537- const PLATFORM_META = {
538- longbridge : { label : "LongBridge" , code : "LB" , accent : "var(--lb)" } ,
539- ibkr : { label : "IBKR" , code : "IB" , accent : "var(--ib)" } ,
540- schwab : { label : "Schwab" , code : "SW" , accent : "var(--sw)" } ,
541- firstrade : { label : "Firstrade" , code : "FT" , accent : "var(--ft)" } ,
542- qmt : { label : "QMT" , code : "QM" , accent : "var(--qmt)" } ,
543- binance : { label : "Binance" , code : "BN" , accent : "var(--bn)" } ,
544- } ;
545-
546537async function configPayload ( request , env ) {
547538 const session = await readSession ( request , env ) ;
548- if ( ! session ?. allowed ) return { accountOptions : null , platformMeta : PLATFORM_META } ;
539+ if ( ! session ?. allowed ) return { accountOptions : null } ;
549540 const accountConfig = await loadAccountOptionsConfig ( env ) ;
550541 const strategyProfiles = await loadStrategyProfilesConfig ( env ) ;
551542 return {
552543 accountOptions : accountConfig . options ,
553544 platformRepositories : platformRepositories ( env ) ,
554- platformMeta : PLATFORM_META ,
555545 strategyProfiles,
556546 currentStrategies : await loadCurrentStrategiesSafely ( accountConfig . options , env ) ,
557547 } ;
@@ -560,7 +550,6 @@ async function configPayload(request, env) {
560550async function strategyProfilesPayload ( env ) {
561551 return {
562552 strategyProfiles : await loadStrategyProfilesConfig ( env ) ,
563- platformMeta : PLATFORM_META ,
564553 } ;
565554}
566555
0 commit comments