xalign: load interval from config

This commit is contained in:
c9s 2023-06-08 16:00:43 +08:00
parent c9ee4e52cc
commit db43c87227
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -210,7 +210,7 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se
go func() {
s.align(ctx, sessions)
ticker := time.NewTicker(time.Minute)
ticker := time.NewTicker(s.Interval.Duration())
defer ticker.Stop()
for {