Skip to content

Commit

Permalink
xmaker: fix order check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 28, 2025
1 parent 79232e7 commit 9d29612
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 @@ -1546,7 +1546,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
}
}

if !keptOrder {
if !hasOrder || !keptOrder {
s.logger.Infof("placing new spread maker order: %+v...", makerOrderForm)

retOrder, err := s.SpreadMaker.placeOrder(ctx, makerOrderForm)
Expand Down

0 comments on commit 9d29612

Please sign in to comment.