xmaker: when submitting hedge orders, do not add it to the active orderbook

This commit is contained in:
c9s 2024-08-29 00:33:04 +08:00
parent 8e91a023ca
commit 86e464b1bc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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()