}
public List<Order> findActiveSellOrders(
BrokerageAccount account, String symbol) {
OrderCriteria criteria = new OrderCriteria();
criteria.setAccountId(account.getId());
criteria.setSymbol(symbol);
List<OrderSide> sides = new ArrayList<OrderSide>();
sides.add(OrderSide.Sell);
criteria.setSides(sides);
List<OrderStatus> statuses = new ArrayList<OrderStatus>();
statuses.add(OrderStatus.New);
statuses.add(OrderStatus.PartiallyFilled);
statuses.add(OrderStatus.PendingNew);
statuses.add(OrderStatus.PendingCancel);
criteria.setStatuses(statuses);
return findOrders(criteria);
}