mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
do not remove order if it's partially filled
This commit is contained in:
parent
9e93cd66de
commit
9e1d28f3b3
|
@ -107,7 +107,9 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
|
|||
|
||||
case types.OrderStatusCanceled:
|
||||
if s.RemoveCancelled {
|
||||
s.Remove(order)
|
||||
if order.Status != types.OrderStatusPartiallyFilled {
|
||||
s.Remove(order)
|
||||
}
|
||||
}
|
||||
|
||||
case types.OrderStatusRejected:
|
||||
|
|
Loading…
Reference in New Issue
Block a user