mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
xalign: load interval from config
This commit is contained in:
parent
c9ee4e52cc
commit
db43c87227
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user