Improve NOFXi agent strategy creation flow

This commit is contained in:
lky-spec
2026-05-06 17:00:05 +08:00
parent 159f27dfdd
commit 0f11be77f8
12 changed files with 865 additions and 62 deletions

View File

@@ -16,7 +16,7 @@ func (s *Server) RegisterAgentHandler(h *agent.WebHandler) {
ctx = agent.WithSessionPolicy(ctx, agent.SessionPolicy{
Authenticated: true,
IsAdmin: isAdmin,
CanExecuteTrade: isAdmin,
CanExecuteTrade: true,
CanViewSensitiveSecrets: false,
})
req := c.Request.WithContext(ctx)
@@ -28,7 +28,7 @@ func (s *Server) RegisterAgentHandler(h *agent.WebHandler) {
ctx = agent.WithSessionPolicy(ctx, agent.SessionPolicy{
Authenticated: true,
IsAdmin: isAdmin,
CanExecuteTrade: isAdmin,
CanExecuteTrade: true,
CanViewSensitiveSecrets: false,
})
req := c.Request.WithContext(ctx)