grid2: improve warning message

This commit is contained in:
c9s 2023-04-28 16:16:23 +08:00
parent f958120fb5
commit 829edeb401
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -444,7 +444,7 @@ func (s *Strategy) processFilledOrder(o types.Order) {
executedPrice := o.Price
if o.ExecutedQuantity.Compare(o.Quantity) != 0 {
s.logger.Warnf("order executed quantity %s != order quantity %s, something is wrong", o.ExecutedQuantity, o.Quantity)
s.logger.Warnf("order #%d is filled, but order executed quantity %s != order quantity %s, something is wrong", o.OrderID, o.ExecutedQuantity, o.Quantity)
}
/*