Logon
Initiate a FIX session with a Logon message — MsgType (35) set to A. Set EncryptMethod (98) to 0 and HeartBtInt (108) to the desired interval (default: 30 seconds).
Message Format
Standard FIX Fields
Standard FIX Trailer
Logon Fields
- Outgoing
- Response
Send the Logon message to initiate the session:
Logon with Reset Sequence Number Flag
Reset sequence numbers on both sides by sending a Logon with ResetSeqNumFlag (141) set to Y.
Message Format
Uses the same Standard FIX Fields and Logon Fields as a regular Logon, plus:- Outgoing
- Response
Send the Logon with ResetSeqNumFlag (
141) = Y.Replay Messages
Request retransmission of messages with a Resend Request — MsgType (35) set to 2. Use this when a gap in sequence numbers is detected, a message is lost, or higher-than-expected sequence numbers arrive from the counterparty.
Resend Scenarios
Message Format
Standard FIX Fields
Standard FIX Trailer
- Outgoing
- Response
Required
Heartbeat
Monitor the FIX connection with Heartbeat messages — MsgType (35) set to 0. The default HeartBtInt (108) interval is 30 seconds.
Key Behavior
- Reset the heartbeat timer after every transmitted message, not just heartbeats.
- If no data is received within the heartbeat interval, send a Test Request (MsgType
1) to verify the connection. - Include TestReqID (
112) to match Test Requests with Heartbeat responses. Any string can be used (a timestamp is recommended). - If no Heartbeat response arrives in a reasonable time, consider the connection lost.
Message Format
Standard FIX Fields
Standard FIX Trailer
Heartbeat Fields
- Outgoing
- Response
Send a Heartbeat when no message has been sent within the HeartBtInt interval, or in response to a Test Request.
Reject
A Reject message — MsgType (35) set to 3 — is sent when a message cannot be processed due to a session-level rule violation.
Message Format – Response Message
Standard FIX Fields
Standard FIX Trailer
Reject Fields
Always PresentLogout
A Logout message — MsgType (35) set to 5 — initiates or confirms FIX session termination.