From 98468b39c7ba430bfb2e3b76ff53fc8e25f9898b Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 11 Dec 2023 17:05:07 +0800 Subject: [PATCH] xdepthmaker: change priceHeartBeat alert to warning --- pkg/strategy/xdepthmaker/strategy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index 65f03b9a3..d6bfc2b6f 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -421,7 +421,7 @@ func (s *Strategy) CrossRun( return } - if time.Since(lastOrderReplenishTime) < time.Minute { + if time.Since(lastOrderReplenishTime) < 10*time.Second { continue } @@ -828,14 +828,14 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) { bookLastUpdateTime := s.pricingBook.LastUpdateTime() if _, err := s.bidPriceHeartBeat.Update(bestBid); err != nil { - log.WithError(err).Errorf("quote update error, %s price not updating, order book last update: %s ago", + log.WithError(err).Warnf("quote update error, %s price not updating, order book last update: %s ago", s.Symbol, time.Since(bookLastUpdateTime)) return } if _, err := s.askPriceHeartBeat.Update(bestAsk); err != nil { - log.WithError(err).Errorf("quote update error, %s price not updating, order book last update: %s ago", + log.WithError(err).Warnf("quote update error, %s price not updating, order book last update: %s ago", s.Symbol, time.Since(bookLastUpdateTime)) return