-
Notifications
You must be signed in to change notification settings - Fork 1
Description
what is msgSeqNum?
msgSeqNum is a field in the FIX protocol message header that is used to assign a unique sequence number to each message. This field contains a numeric value that is incremented by one for each message sent. The sequence numbers are used by the receiving party to ensure that messages are received in the correct order and to detect missing or duplicate messages.
For example, if a sender sends three messages with sequence numbers 1, 2, and 3, the receiver will expect to receive those messages in that order. If the receiver receives message 3 before message 2, it will know that a message is missing and can request a retransmission. Similarly, if the receiver receives two messages with the same sequence number, it will know that there is a duplicate message and can discard one of them.
The msgSeqNum field is an important part of the FIX protocol's reliability and consistency mechanisms, and helps to ensure that messages are properly processed and recorded by both the sender and receiver.