8=FIX.4.2
9=111
34=15778
35=5
49=TEST1
52=20160129-23:00:59.055
56=DWFIX01
58=MsgSeqNum too low, expecting 44536 but received 3
10=054
8=FIX.4.2
9=54
35=5
34=5
49=DWFIX01
52=20160129-23:00:59.142
56=TEST1
10=197

What does the Logout <5> message do?

The Logout <5> message initiates or confirms the termination of a FIX session. Disconnection without the exchange of Logout <5> messages should be interpreted as an abnormal condition.

Before actually closing the session, the logout initiator should wait for the opposite side to respond with a confirming Logout <5> message. This allows the remote end a chance to perform any Gap Fill operations that may be necessary. The session may be terminated if the remote side does not respond in an appropriate time frame.

After sending the Logout <5> message, the logout initiator should not send any messages unless requested to do so by the logout acceptor via a ResendRequest.

TagTag DescriptionExample ValueValue DescriptionRequired
8BeginStringFIX.4.2FIX VersionYes
9BodyLength111Length of messageYes
34MsgSeqNum15778Message sequence numberYes
35MsgType5Logout MessageYes
49SenderCompIDTEST1Sender IDYes
52SendingTime20160129-23:00:59.055Sending timestampYes
56TargetCompIDDWFIX01Target IDYes
58TextMsgSeqNum too low, expecting 44536 but received 3Logout messageYes
10CheckSum054Checksum of messageYes