Skip to content

Commit

Permalink
adjust prune to 8 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Feb 3, 2025
1 parent 583734d commit 2390e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/strategy/xmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2390e07

Please sign in to comment.