grid2: add comment to the sync call

This commit is contained in:
c9s 2023-03-01 21:05:28 +08:00
parent 42840cd519
commit b2bbf2d6ca
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -759,6 +759,8 @@ func (s *Strategy) newTriggerPriceHandler(ctx context.Context, session *bbgo.Exc
func (s *Strategy) newOrderUpdateHandler(ctx context.Context, session *bbgo.ExchangeSession) func(o types.Order) {
return func(o types.Order) {
s.handleOrderFilled(o)
// sync the profits to redis
bbgo.Sync(ctx, s)
s.updateGridNumOfOrdersMetrics()