Skip to content

Commit 54ff269

Browse files
committed
added extra attributes, cumulative, total
1 parent 72b4cc6 commit 54ff269

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

quickfixj-examples/banzai/src/main/java/quickfix/examples/banzai/BanzaiApplication.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,22 @@ private void executionReport(Message message, SessionID sessionID) throws FieldN
241241
} else if (ordStatus.valueEquals(OrdStatus.REPLACED)) {
242242
OrderQty orderQty = new OrderQty();
243243
message.getField(orderQty);
244-
order.setQuantity((int) orderQty.getValue());
245-
if (message.isSetField(Price.FIELD)) {
244+
order.setQuantity((int)orderQty.getValue());
245+
246+
LeavesQty leavesQty = new LeavesQty();
247+
message.getField(leavesQty);
248+
order.setOpen((int)leavesQty.getValue());
249+
250+
CumQty cumQty = new CumQty();
251+
message.getField(cumQty);
252+
order.setExecuted((int)cumQty.getValue());
253+
254+
if (message.isSetField(Price.FIELD)){
246255
Price price = new Price();
247256
message.getField(price);
248257
order.setLimit(price.getValue());
249258
}
250-
if (message.isSetField(StopPx.FIELD)) {
259+
if (message.isSetField(StopPx.FIELD)){
251260
StopPx stopPx = new StopPx();
252261
message.getField(stopPx);
253262
order.setStop(stopPx.getValue());

0 commit comments

Comments
 (0)