From 69f49d6a86d468b42f1a6e5a8308fa9684e1a4af Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 16 Nov 2024 00:55:02 +0800 Subject: [PATCH] xdepthmaker: remove unused OrderCancelWaitTime and add source book price warning --- pkg/strategy/xdepthmaker/strategy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/strategy/xdepthmaker/strategy.go b/pkg/strategy/xdepthmaker/strategy.go index 8bcca22d6..0fa6ec1fc 100644 --- a/pkg/strategy/xdepthmaker/strategy.go +++ b/pkg/strategy/xdepthmaker/strategy.go @@ -222,8 +222,6 @@ type Strategy struct { FullReplenishInterval types.Duration `json:"fullReplenishInterval"` - OrderCancelWaitTime types.Duration `json:"orderCancelWaitTime"` - Margin fixedpoint.Value `json:"margin"` BidMargin fixedpoint.Value `json:"bidMargin"` AskMargin fixedpoint.Value `json:"askMargin"` @@ -1129,6 +1127,7 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) { bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk() if !hasPrice { + s.logger.Warnf("source book has no price") return }