xmaker: fix ask pips

This commit is contained in:
c9s 2022-01-05 11:32:56 +08:00
parent fd2f12a64f
commit e997220321

View File

@ -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)) {