From e99722032176061b07cfcd52872db365ef2866b3 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 5 Jan 2022 11:32:56 +0800 Subject: [PATCH] xmaker: fix ask pips --- pkg/strategy/xmaker/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index 0ba89be03..ac6236756 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -445,7 +445,7 @@ func (s *Strategy) updateQuote(ctx context.Context, orderExecutionRouter bbgo.Or askPrice = askPrice.MulFloat64(1.0 + askMargin.Float64()) if i > 0 && pips > 0 { - askPrice -= pips.MulFloat64(s.makerMarket.TickSize) + askPrice += pips.MulFloat64(s.makerMarket.TickSize) } if makerQuota.BaseAsset.Lock(askQuantity) && hedgeQuota.QuoteAsset.Lock(askQuantity.Mul(askPrice)) {