mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
bbgo: fix order store RemoveCancelled
This commit is contained in:
parent
65da02af2c
commit
770c1067fc
|
@ -128,9 +128,7 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
|
|||
|
||||
case types.OrderStatusCanceled:
|
||||
if s.RemoveCancelled {
|
||||
if order.Status != types.OrderStatusPartiallyFilled {
|
||||
s.Remove(order)
|
||||
}
|
||||
s.Remove(order)
|
||||
}
|
||||
|
||||
case types.OrderStatusRejected:
|
||||
|
|
Loading…
Reference in New Issue
Block a user