diff --git a/pkg/strategy/grid/strategy.go b/pkg/strategy/grid/strategy.go index 07d233df2..2624187d7 100644 --- a/pkg/strategy/grid/strategy.go +++ b/pkg/strategy/grid/strategy.go @@ -332,6 +332,12 @@ func (s *Strategy) tradeUpdateHandler(trade types.Trade) { if s.orderStore.Exists(trade.OrderID) { log.Infof("received trade update of order %d: %+v", trade.OrderID, trade) + if s.TradeService != nil { + if err := s.TradeService.MarkStrategyID(context.Background(), trade.ID, ID) ; err != nil { + log.WithError(err).Error("mark strategy ID error") + } + } + if trade.Side == types.SideTypeSelf { return }