From 2390e07bba39dcc7c395926a8972974a2b831a8a Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 3 Feb 2025 21:14:41 +0800 Subject: [PATCH] adjust prune to 8 hours --- pkg/strategy/xmaker/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index 24001353f..91bf22edd 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -1555,7 +1555,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) { s.logger.WithError(err).Errorf("unable to place spread maker order") } else if retOrder != nil { s.orderStore.Add(*retOrder) - s.orderStore.Prune(24 * time.Hour) + s.orderStore.Prune(8 * time.Hour) s.logger.Infof("spread maker order placed: #%d %f@%f (%s)", retOrder.OrderID, retOrder.Quantity.Float64(), retOrder.Price.Float64(), retOrder.Status)