bbgo: log filled order

This commit is contained in:
c9s 2023-09-17 18:25:21 +08:00
parent 797ee4402c
commit 89c88c48a3
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -291,6 +291,7 @@ func (b *ActiveOrderBook) Update(order types.Order) {
b.mu.Unlock() b.mu.Unlock()
if removed { if removed {
log.Infof("[ActiveOrderBook] order #%d is filled: %s", order.OrderID, order.String())
b.EmitFilled(order) b.EmitFilled(order)
} }
b.C.Emit() b.C.Emit()