add types.OrderStatusFilled

This commit is contained in:
c9s 2020-10-29 21:31:46 +08:00
parent 63df07b815
commit 458fa8aa9d

View File

@ -220,7 +220,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
switch order.Status { switch order.Status {
case types.OrderStatusCanceled, types.OrderStatusRejected: case types.OrderStatusCanceled, types.OrderStatusRejected, types.OrderStatusFilled:
log.Infof("order status %s, removing %d from the active order pool...", order.Status, order.OrderID) log.Infof("order status %s, removing %d from the active order pool...", order.Status, order.OrderID)
switch order.Side { switch order.Side {