0

Does quickfix/j maintain same sequence of seqNum for both type of messages(session and application lvl messages) or each level has separate sequence of seqNum.

Suppose I have a connection running, in the same time I'm getting orders msgType=D and quickfix session level message heartbeat msgType=0. currecnt seqNum of msgType=10, and in the mean while order msgType come in, i want to know what will be the ser number of msgType=D. eother seqNum will be 11 or 1?

Muneeb Nasir
  • 2,414
  • 4
  • 31
  • 54

1 Answers1

3

It's the same sequence for all types of messages.

Note that incoming and outgoing, however, each have their own sequence.

Grant Birchmeier
  • 17,809
  • 11
  • 63
  • 98
  • Thanks Grant. Also can you please tell me, is there is way to get current seqNum from session not from msg? – Muneeb Nasir Oct 03 '14 at 12:11
  • Also you can answer in new thread of answer i'll up vote of that answer as well. – Muneeb Nasir Oct 03 '14 at 12:14
  • 2
    `session.getExpectedSenderNum()` and `.getExpectedTargetNum()`. See [here](http://quickfixj.org/quickfixj/javadoc/1.5.3/quickfix/Session.html). **Though I'm of the opinion that anyone who thinks they need to programmatically interact with sequence numbers is probably wrong.** In my 5 years of working with QF, I've come across very few good reasons for a program to care about sequence numbers at the application level. – Grant Birchmeier Oct 03 '14 at 14:52
  • thanks. i dont to keep message in memory just for latest seqNum that's i want to get it from session. – Muneeb Nasir Oct 04 '14 at 03:35
  • I can't think of any good reason to need the sequence number. – Grant Birchmeier Oct 04 '14 at 13:59