The logon message authenticates the FIX client upon connection to the FIX server. The logon message must be the first message sent by the application requesting to (re)establish a FIX session.
The logon format is as follows:
Logon
Tag |
Field Name |
Req’d |
Comment |
|
Standard Header |
Y |
MsgType = A |
98 |
EncryptMethod |
Y |
0 = None / other |
141 |
ResetSeqNumFlag |
N |
Indicates both sides of a FIX session should reset sequence numbers. |
95 |
RawDataLength |
N |
Number of bytes in RawData field |
96 |
RawData |
N |
Unformatted raw data - provide the logon password here |
108 |
HeartBtInt |
Y |
Heartbeat interval (seconds) |
|
Standard Trailer |
Y |
|
FIX message example:
8 BeginString = FIX.4.2
9 BodyLength = 78
35 MsgType = A "Logon"
49 SenderCompID = CQGTEST
56 TargetCompID = SERVERTEST
34 MsgSeqNum = 282
52 SendingTime = 20131122-17:20:17.038
95 RawDataLength = 8
96 RawData = pa55w0rd
108 HeartBtInt = 30
98 EncryptMethod = 0 "None"
141 ResetSeqNumFlag = N "DoNotResetSequenceNumber"
10 CheckSum = 008