The Logon message is used to authenticate and establish a FIX session. It includes signature-based authentication using HMAC SHA-256.
FIX Specification
Example
Note same value used by both sides.
Indicates both sides of a FIX session should reset sequence numbers.
Contains signature (see below for creating a signature).
Contains the API Key for the Customer user.
Logon Request:Logon Response:
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.