Skip to content

Commit

Permalink
xgap: add MOQ adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 6, 2025
1 parent 874c7f8 commit 0a2378c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/strategy/xgap/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (s *Strategy) makeSpread(ctx context.Context, bestBid, bestAsk types.PriceV
Symbol: s.Symbol,
Side: types.SideTypeSell,
Type: types.OrderTypeLimit,
Quantity: bestBid.Volume,
Quantity: fixedpoint.Min(bestBid.Volume, s.tradingMarket.MinQuantity),
Price: bestBid.Price,
Market: s.tradingMarket,
},
Expand Down

0 comments on commit 0a2378c

Please sign in to comment.