xdepthmaker: use pips

This commit is contained in:
c9s 2024-11-16 02:32:18 +08:00
parent ae7d5e9dd8
commit 9cced25ffb
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1027,9 +1027,9 @@ func (s *Strategy) generateMakerOrders(
if lastMakerPrice.Sign() > 0 && depthPrice.Compare(lastMakerPrice) == 0 {
switch side {
case types.SideTypeBuy:
depthPrice = depthPrice.Sub(s.makerMarket.TickSize)
depthPrice = depthPrice.Sub(s.makerMarket.TickSize.Mul(s.Pips))
case types.SideTypeSell:
depthPrice = depthPrice.Add(s.makerMarket.TickSize)
depthPrice = depthPrice.Add(s.makerMarket.TickSize.Mul(s.Pips))
}
}