Skip to main content
The Logon message is used to authenticate and establish a FIX session. It includes signature-based authentication using HMAC SHA-256.
header
required
MsgType A
108 - HeartBtInt
integer
required
Note same value used by both sides.
141 - ResetSeqNumFlag
boolean
Indicates both sides of a FIX session should reset sequence numbers.
96 - RawData
string
required
Contains signature (see below for creating a signature).
554 - Password
string
required
Contains the API Key for the Customer user.
trailer
required

Creating a Signature

The signature is created by concatenating:
  • SendingTime (52) as a string
  • ASCII 01 value
  • SeqNum (34) as a string
  • ASCII 01 value
  • SenderCompID (49)
  • ASCII 01 value
  • TargetCompID (56)
This string is then signed using the HMAC SHA-256 Algorithm and the API Secret for the API Key.

Sample Java Code

DependenciesThis sample relies on Apache Commons-Codec and QuickFIX for Java.