From 9cced25ffb96731de0d0376b418c5cec311b93fc Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 16 Nov 2024 02:32:18 +0800 Subject: [PATCH] xdepthmaker: use pips --- pkg/strategy/xdepthmaker/strategy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index 94e022d36..e31ccfda0 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -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)) } }