private void invalidMsgType(FIXMessage message) throws IOException { fix.sendReject(message.getMsgSeqNum(), SessionRejectReasonValues.InvalidMsgType, "Invalid MsgType(35)"); }
private void incorrectDataFormatForValue(FIXMessage message, String text) throws IOException { fix.sendReject(message.getMsgSeqNum(), SessionRejectReasonValues.IncorrectDataFormatForValue, text); }
private void requiredTagMissing(FIXMessage message, String text) throws IOException { fix.sendReject(message.getMsgSeqNum(), SessionRejectReasonValues.RequiredTagMissing, text); }
private void valueIsIncorrect(FIXMessage message, String text) throws IOException { fix.sendReject(message.getMsgSeqNum(), SessionRejectReasonValues.ValueIsIncorrect, text); }
private void handleTestRequest(FIXMessage message) throws IOException { FIXValue testReqId = message.valueOf(TestReqID); if (testReqId == null) { sendReject(message.getMsgSeqNum(), 1, "TestReqID(112) not found"); return; } string.setLength(0); testReqId.asString(string); sendHeartbeat(string); }
private void handleTestRequest(FIXMessage message) throws IOException { FIXValue testReqId = message.valueOf(TestReqID); if (testReqId == null) { sendReject(message.getMsgSeqNum(), RequiredTagMissing, "TestReqID(112) not found"); return; } sendHeartbeat(testReqId); }
private void handleResendRequest(FIXMessage message) throws IOException { FIXValue beginSeqNo = message.valueOf(BeginSeqNo); if (beginSeqNo == null) { sendReject(message.getMsgSeqNum(), 1, "BeginSeqNo(7) not found"); return; } FIXValue endSeqNo = message.valueOf(EndSeqNo); if (endSeqNo == null) { sendReject(message.getMsgSeqNum(), 1, "EndSeqNo(16) not found"); return; } sendSequenceReset(beginSeqNo.asInt(), endSeqNo.asInt() + 1); }
private void handleResendRequest(FIXMessage message) throws IOException { FIXValue beginSeqNo = message.valueOf(BeginSeqNo); if (beginSeqNo == null) { sendReject(message.getMsgSeqNum(), RequiredTagMissing, "BeginSeqNo(7) not found"); return; } FIXValue endSeqNo = message.valueOf(EndSeqNo); if (endSeqNo == null) { sendReject(message.getMsgSeqNum(), RequiredTagMissing, "EndSeqNo(16) not found"); return; } sendSequenceReset(beginSeqNo, endSeqNo.asInt() + 1); }
private boolean handleSequenceReset(FIXMessage message) throws IOException { FIXValue value = message.valueOf(NewSeqNo); if (value == null) { sendReject(message.getMsgSeqNum(), RequiredTagMissing, "NewSeqNo(36) not found"); return true; } long newSeqNo = value.asInt(); if (newSeqNo < rxMsgSeqNum) { sendReject(message.getMsgSeqNum(), ValueIsIncorrect, "NewSeqNo(36) too low"); return true; } rxMsgSeqNum = newSeqNo; FIXValue gapFillFlag = message.valueOf(GapFillFlag); boolean reset = gapFillFlag == null || !gapFillFlag.asBoolean(); if (reset) statusListener.sequenceReset(FIXConnection.this); return reset; }
private boolean handleSequenceReset(FIXMessage message) throws IOException { FIXValue value = message.valueOf(NewSeqNo); if (value == null) { sendReject(message.getMsgSeqNum(), 1, "NewSeqNo(36) not found"); return true; } long newSeqNo = value.asInt(); if (newSeqNo < rxMsgSeqNum) { sendReject(message.getMsgSeqNum(), 5, "NewSeqNo(36) too low"); return true; } rxMsgSeqNum = newSeqNo; FIXValue gapFillFlag = message.valueOf(GapFillFlag); boolean reset = gapFillFlag == null || gapFillFlag.asChar() != 'Y'; if (reset) statusListener.sequenceReset(FIXConnection.this); return reset; }
connection.sendReject(message.getMsgSeqNum(), 1, "ClOrdID(11) not found"); return; connection.sendReject(message.getMsgSeqNum(), 1, "Symbol(55) not found"); return; connection.sendReject(message.getMsgSeqNum(), 1, "OrderQty(38) not found"); return; connection.sendReject(message.getMsgSeqNum(), 1, "Price(44) not found"); return;
@Override public void message(FIXMessage message) throws IOException { long msgSeqNum = message.getMsgSeqNum(); if (msgSeqNum == 0) { msgSeqNumNotFound();
@Override public void message(FIXMessage message) throws IOException { long msgSeqNum = message.getMsgSeqNum(); if (msgSeqNum == 0) { sendLogout("MsgSeqNum(34) not found");