Partial Fills and Closes

All position fill and close orders which are represented by ICloseOrder and IFillOrder interfaces that can get retrieved by calling IOrder.getFillHistory and IOrder.getCloseHistory methods, for instance:

private void printPartialOrders(IOrder order){
    for(IFillOrder pfOrder : order.getFillHistory()){
        console.getInfo().println("fill: " + order.getLabel() + " " + pfOrder);
    }
    for(ICloseOrder pfOrder : order.getCloseHistory()){
        console.getInfo().println("close: " + order.getLabel() + " " + pfOrder);
    }
}

OrderFillAndCloseHistory.java

The information on this web site is provided only as general information, which may be incomplete or outdated. Click here for full disclaimer.