xdepthmaker: remove unused OrderCancelWaitTime and add source book price warning

This commit is contained in:
c9s 2024-11-16 00:55:02 +08:00
parent 67a1cd890e
commit 69f49d6a86
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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
}