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,8 +107,10 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
|
|||
|
||||
case types.OrderStatusCanceled:
|
||||
if s.RemoveCancelled {
|
||||
if order.Status != types.OrderStatusPartiallyFilled {
|
||||
s.Remove(order)
|
||||
}
|
||||
}
|
||||
|
||||
case types.OrderStatusRejected:
|
||||
s.Remove(order)
|
||||
|
|
Loading…
Reference in New Issue
Block a user