Created
May 6, 2014 18:15
-
-
Save GLitchfield/0a65a5041c6f588c7647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void printOrds() { | |
final StringBuilder sb = new StringBuilder().append("\n"); | |
for(final Order o : getActiveOrders()) { | |
sb.append(o.getID()).append(" - TOT QTY ").append(o.getOrderSize()).append(" - REMAIN QTY ").append(o.getRemainingQty()); | |
} | |
log.debug("ORD REPORT {}", sb); | |
} | |
private void printOrders(final SimTradingAccount tradingAct) { | |
final StringBuilder sb = new StringBuilder().append("\n"); | |
for(final OrderModel o : tradingAct.openOrders()) { | |
sb.append(o.orderID()).append(" - TOT QTY ").append(o.totalQty()).append(" - REMAIN QTY ").append(o.remainingQty()); | |
} | |
log.debug("ORDER REPORT {}", sb.toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment