/** Creates a group based on the specified container message and group id */ public Group createGroup(String msgType, int groupID) { return msgFactory.create(beginString, msgType, groupID); }
@Override public Group create(String beginString, String msgType, int correspondingFieldID) { return mDelegate.create(beginString,msgType,correspondingFieldID); } private final MessageFactory mDelegate = new quickfix.fix44.MessageFactory();
/** * Creates a message for a specified type, FIX version, and ApplVerID. * * @param beginString the FIX version (for example, "FIX.4.2") * @param applVerID the ApplVerID (for example "6" for FIX44) * @param msgType the FIX message type (for example, "D" for an order) * @return a message instance */ default Message create(String beginString, ApplVerID applVerID, String msgType) { return create(beginString, msgType); }
/** * Creates a message for a specified type, FIX version, and ApplVerID. * * @param beginString the FIX version (for example, "FIX.4.2") * @param applVerID the ApplVerID (for example "6" for FIX44) * @param msgType the FIX message type (for example, "D" for an order) * @return a message instance */ default Message create(String beginString, ApplVerID applVerID, String msgType) { return create(beginString, msgType); }
public Group create(String beginString, String msgType, int correspondingFieldID) { MessageFactory messageFactory = messageFactories.get(beginString); if (messageFactory != null) { return messageFactory.create(beginString, msgType, correspondingFieldID); } throw new IllegalArgumentException("Unsupported FIX version: " + beginString); } }
public Group create(String beginString, String msgType, int correspondingFieldID) { MessageFactory messageFactory = messageFactories.get(beginString); if (messageFactory != null) { return messageFactory.create(beginString, msgType, correspondingFieldID); } throw new IllegalArgumentException("Unsupported FIX version: " + beginString); } }
public Group create(String beginString, String msgType, int correspondingFieldID) { MessageFactory messageFactory = messageFactories.get(beginString); if (messageFactory != null) { return messageFactory.create(beginString, msgType, correspondingFieldID); } throw new IllegalArgumentException("Unsupported FIX version: " + beginString); } }
/** Creates a message baed on the specified message type */ public Message createMessage(String msgType) { Message msg = msgFactory.create(beginString, msgType); addTransactionTimeIfNeeded(msg); addApplicationVersion(msg); return msg; }
/** * Creates a message representing an ExecutionReport (type {@link MsgType#ORDER_CANCEL_REJECT} * @return appropriately versioned message object */ public Message newOrderCancelReject() { Message msg = msgFactory.create(beginString, MsgType.ORDER_CANCEL_REJECT); addApplicationVersion(msg); addTransactionTimeIfNeeded(msg); return msg; }
@Override public Message create(String inBeginString, String inMsgType) { Message m = mDelegate.create(inBeginString,inMsgType); m.getHeader().setField(new BeginString(inBeginString)); return m; }
/** Creates a new order message and poopulates it with current {@link TransactTime} * @return new order single */ public Message newBasicOrder() { Message msg = msgFactory.create(beginString, MsgType.ORDER_SINGLE); addApplicationVersion(msg); addHandlingInst(msg); addTransactionTimeIfNeeded(msg); return msg; }
public void generateHeartbeat() { final Message heartbeat = messageFactory.create(sessionID.getBeginString(), MsgType.HEARTBEAT); initializeHeader(heartbeat.getHeader()); sendRaw(heartbeat, 0); }
public void generateHeartbeat() { final Message heartbeat = messageFactory.create(sessionID.getBeginString(), MsgType.HEARTBEAT); initializeHeader(heartbeat.getHeader()); sendRaw(heartbeat, 0); }
public void generateHeartbeat() { final Message heartbeat = messageFactory.create(sessionID.getBeginString(), MsgType.HEARTBEAT); initializeHeader(heartbeat.getHeader()); sendRaw(heartbeat, 0); }
public void generateTestRequest(String id) { state.incrementTestRequestCounter(); final Message testRequest = messageFactory.create(sessionID.getBeginString(), MsgType.TEST_REQUEST); initializeHeader(testRequest.getHeader()); testRequest.setString(TestReqID.FIELD, id); sendRaw(testRequest, 0); }
public void generateTestRequest(String id) { state.incrementTestRequestCounter(); final Message testRequest = messageFactory.create(sessionID.getBeginString(), MsgType.TEST_REQUEST); initializeHeader(testRequest.getHeader()); testRequest.setString(TestReqID.FIELD, id); sendRaw(testRequest, 0); }
public void generateTestRequest(String id) { state.incrementTestRequestCounter(); final Message testRequest = messageFactory.create(sessionID.getBeginString(), MsgType.TEST_REQUEST); initializeHeader(testRequest.getHeader()); testRequest.setString(TestReqID.FIELD, id); sendRaw(testRequest, 0); }
public Message newCancelReplacePrice( String orderID, String origOrderID, BigDecimal price ) { Message aMessage = msgFactory.create(beginString, MsgType.ORDER_CANCEL_REPLACE_REQUEST); addApplicationVersion(aMessage); addTransactionTimeIfNeeded(aMessage); aMessage.setField(new ClOrdID(orderID)); aMessage.setField(new OrigClOrdID(origOrderID)); aMessage.setField(new Price(price)); addHandlingInst(aMessage); return aMessage; }
public Message newCancelReplaceShares(String orderID, String origOrderID, BigDecimal quantity) { Message aMessage = msgFactory.create(beginString, MsgType.ORDER_CANCEL_REPLACE_REQUEST); addApplicationVersion(aMessage); addTransactionTimeIfNeeded(aMessage); aMessage.setField(new ClOrdID(orderID)); aMessage.setField(new OrigClOrdID(origOrderID)); aMessage.setField(new OrderQty(quantity)); addHandlingInst(aMessage); return aMessage; }
private void generateHeartbeat(Message testRequest) throws FieldNotFound { final Message heartbeat = messageFactory.create(sessionID.getBeginString(), MsgType.HEARTBEAT); initializeHeader(heartbeat.getHeader()); if (testRequest.isSetField(TestReqID.FIELD)) { heartbeat.setString(TestReqID.FIELD, testRequest.getString(TestReqID.FIELD)); } if (enableLastMsgSeqNumProcessed) { heartbeat.getHeader().setInt(LastMsgSeqNumProcessed.FIELD, testRequest.getHeader().getInt(MsgSeqNum.FIELD)); } sendRaw(heartbeat, 0); }