pkg/exhcange: return err on max queryClosedOrdersByLastOrderID

This commit is contained in:
Edwin 2023-07-27 18:35:58 +08:00
parent 270283d027
commit f25ab567eb

View File

@ -305,8 +305,10 @@ func (e *Exchange) queryClosedOrdersByLastOrderID(ctx context.Context, symbol st
orders = append(orders, *order)
}
orders = types.SortOrdersAscending(orders)
return orders, nil
if err != nil {
return nil, err
}
return types.SortOrdersAscending(orders), nil
}
func (e *Exchange) CancelAllOrders(ctx context.Context) ([]types.Order, error) {