Skip to content

Commit

Permalink
xdepthmaker: call bbgo.Sync on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 18, 2023
1 parent 84085e0 commit 47b12ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/strategy/xdepthmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ func (s *Strategy) CrossRun(
log.WithError(err).Errorf("graceful cancel %s order error", s.Symbol)
}

bbgo.Sync(ctx, s)
bbgo.Notify("%s: %s position", ID, s.Symbol, s.Position)
})

Expand Down

0 comments on commit 47b12ed

Please sign in to comment.