From 47b12edc4d31bf2060331f59f7ab6b80482039b6 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 18 Dec 2023 22:30:16 +0800 Subject: [PATCH] xdepthmaker: call bbgo.Sync on shutdown --- pkg/strategy/xdepthmaker/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index a2d05110e5..912a44d802 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -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) })