From 86e464b1bc8d53675d9154f7b0a62ed610e59ecc Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 29 Aug 2024 00:33:04 +0800 Subject: [PATCH] xmaker: when submitting hedge orders, do not add it to the active orderbook --- pkg/strategy/xmaker/strategy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index 5280738b8..67811e630 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -801,7 +801,6 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) { orderCreateCallback := func(createdOrder types.Order) { s.orderStore.Add(createdOrder) - s.activeMakerOrders.Add(createdOrder) } defer s.tradeCollector.Process()