diff --git a/api/server.go b/api/server.go index f3b6a543..ee09f721 100644 --- a/api/server.go +++ b/api/server.go @@ -838,6 +838,7 @@ func (s *Server) handleGetTraderConfig(c *gin.Context) { "trading_symbols": traderConfig.TradingSymbols, "custom_prompt": traderConfig.CustomPrompt, "override_base_prompt": traderConfig.OverrideBasePrompt, + "system_prompt_template": traderConfig.SystemPromptTemplate, "is_cross_margin": traderConfig.IsCrossMargin, "use_coin_pool": traderConfig.UseCoinPool, "use_oi_top": traderConfig.UseOITop, diff --git a/web/src/components/AITradersPage.tsx b/web/src/components/AITradersPage.tsx index d534c0b0..9a8864c5 100644 --- a/web/src/components/AITradersPage.tsx +++ b/web/src/components/AITradersPage.tsx @@ -189,6 +189,7 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) { trading_symbols: data.trading_symbols, custom_prompt: data.custom_prompt, override_base_prompt: data.override_base_prompt, + system_prompt_template: data.system_prompt_template, is_cross_margin: data.is_cross_margin, use_coin_pool: data.use_coin_pool, use_oi_top: data.use_oi_top diff --git a/web/src/types.ts b/web/src/types.ts index 7d115106..90b74e4c 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -195,6 +195,7 @@ export interface TraderConfigData { trading_symbols: string; custom_prompt: string; override_base_prompt: boolean; + system_prompt_template: string; is_cross_margin: boolean; use_coin_pool: boolean; use_oi_top: boolean;