@@ -534,14 +534,24 @@ 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+
537546async function configPayload ( request , env ) {
538547 const session = await readSession ( request , env ) ;
539- if ( ! session ?. allowed ) return { accountOptions : null } ;
548+ if ( ! session ?. allowed ) return { accountOptions : null , platformMeta : PLATFORM_META } ;
540549 const accountConfig = await loadAccountOptionsConfig ( env ) ;
541550 const strategyProfiles = await loadStrategyProfilesConfig ( env ) ;
542551 return {
543552 accountOptions : accountConfig . options ,
544553 platformRepositories : platformRepositories ( env ) ,
554+ platformMeta : PLATFORM_META ,
545555 strategyProfiles,
546556 currentStrategies : await loadCurrentStrategiesSafely ( accountConfig . options , env ) ,
547557 } ;
@@ -550,6 +560,7 @@ async function configPayload(request, env) {
550560async function strategyProfilesPayload ( env ) {
551561 return {
552562 strategyProfiles : await loadStrategyProfilesConfig ( env ) ,
563+ platformMeta : PLATFORM_META ,
553564 } ;
554565}
555566
0 commit comments