public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
quickfix.field.ExecType execType = new quickfix.field.ExecType(); inMessage.getField(execType); switch(execType.getValue()) { case quickfix.field.ExecType.FILL: case quickfix.field.ExecType.PARTIAL_FILL: execType.setValue(quickfix.field.ExecType.TRADE); inMessage.setField(execType); break; switch(execTransType.getValue()) { case quickfix.field.ExecTransType.CANCEL: inMessage.setField(new quickfix.field.ExecType(quickfix.field.ExecType.TRADE_CANCEL)); break; case quickfix.field.ExecTransType.CORRECT: inMessage.setField(new quickfix.field.ExecType(quickfix.field.ExecType.TRADE_CORRECT)); break; case quickfix.field.ExecTransType.NEW: inMessage.setField(new quickfix.field.ExecType(quickfix.field.ExecType.ORDER_STATUS)); break; default:
@Override public void onEvent(ExecutionReport report, long sequence, boolean endOfBatch) throws Exception { String orderId = report.getOrderID().getValue(); String side = report.getSide().getValue() == Side.BUY ? "bought" : "sold"; ExecType execType = report.getExecType(); String symbol = report.getSymbol().getValue(); if (execType.getValue() == ExecType.NEW) { logger.debug("Order {} accepted", orderId); } else { double tradeQty = report.getLastShares().getValue(); double tradePrice = report.getLastPx().getValue(); logger.debug("Broker {} {} {} shares of {} at {}", new Object[]{broker, side, tradeQty, symbol, tradePrice}); } } });
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }
public quickfix.field.ExecType getExecType() throws FieldNotFound { return get(new quickfix.field.ExecType()); }