mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xdepthmaker: remove unused OrderCancelWaitTime and add source book price warning
This commit is contained in:
parent
67a1cd890e
commit
69f49d6a86
|
@ -222,8 +222,6 @@ type Strategy struct {
|
||||||
|
|
||||||
FullReplenishInterval types.Duration `json:"fullReplenishInterval"`
|
FullReplenishInterval types.Duration `json:"fullReplenishInterval"`
|
||||||
|
|
||||||
OrderCancelWaitTime types.Duration `json:"orderCancelWaitTime"`
|
|
||||||
|
|
||||||
Margin fixedpoint.Value `json:"margin"`
|
Margin fixedpoint.Value `json:"margin"`
|
||||||
BidMargin fixedpoint.Value `json:"bidMargin"`
|
BidMargin fixedpoint.Value `json:"bidMargin"`
|
||||||
AskMargin fixedpoint.Value `json:"askMargin"`
|
AskMargin fixedpoint.Value `json:"askMargin"`
|
||||||
|
@ -1129,6 +1127,7 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) {
|
||||||
|
|
||||||
bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk()
|
bestBid, bestAsk, hasPrice := s.sourceBook.BestBidAndAsk()
|
||||||
if !hasPrice {
|
if !hasPrice {
|
||||||
|
s.logger.Warnf("source book has no price")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user