grid2: add warning message

This commit is contained in:
c9s 2022-12-15 19:20:15 +08:00
parent bbc47bb63a
commit fa73b0e7f7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -388,6 +388,7 @@ func (s *Strategy) processFilledOrder(o types.Order) {
// handleOrderFilled is called when an order status is FILLED
func (s *Strategy) handleOrderFilled(o types.Order) {
if s.grid == nil {
s.logger.Warn("grid is not opened yet, skip order update event")
return
}