strategy: upgrade harmonic persistence sync

This commit is contained in:
austin362667 2022-10-04 15:22:52 +08:00
parent 60e51e1470
commit ec60c708c3

View File

@ -318,7 +318,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
})
s.orderExecutor.TradeCollector().OnPositionUpdate(func(position *types.Position) {
bbgo.Sync(s)
bbgo.Sync(ctx, s)
})
s.orderExecutor.Bind()