mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +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() {
|
go func() {
|
||||||
s.align(ctx, sessions)
|
s.align(ctx, sessions)
|
||||||
|
|
||||||
ticker := time.NewTicker(time.Minute)
|
ticker := time.NewTicker(s.Interval.Duration())
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user