Skip to content

Commit ec60c70

Browse files
committed
strategy: upgrade harmonic persistence sync
1 parent 60e51e1 commit ec60c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/strategy/harmonic/strategy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
318318
})
319319

320320
s.orderExecutor.TradeCollector().OnPositionUpdate(func(position *types.Position) {
321-
bbgo.Sync(s)
321+
bbgo.Sync(ctx, s)
322322
})
323323
s.orderExecutor.Bind()
324324

0 commit comments

Comments
 (0)