Skip to content

Commit

Permalink
xmaker: remove invalid price error
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 25, 2025
1 parent d255a85 commit 429da05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/strategy/xmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 429da05

Please sign in to comment.