bbgo: remove order if ExecutedQuantity is zero

This commit is contained in:
c9s 2021-12-31 01:55:22 +08:00
parent aaa52ecea4
commit 63ccc2d3d0

View File

@ -130,6 +130,8 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
case types.OrderStatusCanceled:
if s.RemoveCancelled {
s.Remove(order)
} else if order.ExecutedQuantity == 0.0 {
s.Remove(order)
}
case types.OrderStatusRejected: