The Logon message (MsgType = A) is the first message exchanged in a FIX (Financial Information Exchange) session. It is used to initiate and establish a session between two counterparties — typically a client (initiator) and a server (acceptor).You must include your credentials in the Logon message to establish a connection with the 360X FIX server.
Logon (35=A)#
The Logon message authenticates a user establishing a connection to a remote system. The Logon message must be the first message sent by the application requesting to initiate a FIX session.
The client sends a Logon message to start a session, and the server responds to confirm receipt. Each connection can only have one active session; attempting to send a Logon message when a session is already established will result in an error.| Tag | Name | Required | Description |
|---|
| 553 | UserName | Y | Client API Key. |
| 554 | Password | Y | Passphrase for Client API key. |
For the Username and Password, you need to send the Client ID and Client Secret that you can request from 360X.
If the Username and Password are invalid, a Session will not be established.Below is sample Go Code to send Username and Password in Logon Message.Logout (35=5)#
The Logout message starts or confirms the ending of a FIX session. If a disconnection occurs without the exchange of Logout messages, it should be viewed as an error.