From 429da0521b054881b25a0e4e4344ded0519853bc Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 25 Jan 2025 08:16:05 +0800 Subject: [PATCH] xmaker: remove invalid price error --- 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 ce00fd847..639ea9a28 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -879,7 +879,7 @@ func (s *Strategy) updateQuote(ctx context.Context) error { bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk() if !hasPrice { s.logger.Warnf("no valid price, skip quoting") - return fmt.Errorf("no valid book price") + return nil } bestBidPrice := bestBid.Price