Skip to content

Commit

Permalink
xmaker: when submitting hedge orders, do not add it to the active ord…
Browse files Browse the repository at this point in the history
…erbook
  • Loading branch information
c9s committed Aug 28, 2024
1 parent 8e91a02 commit 86e464b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/strategy/xmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 86e464b

Please sign in to comment.