mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: remove order if ExecutedQuantity is zero
This commit is contained in:
parent
aaa52ecea4
commit
63ccc2d3d0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user