# Logon to the FIX

**URL:** <https://forum.fixtrading.org/t/logon-to-the-fix/13159>\
**Category:** General Q&A\
**Tags:** imported, 40-session, xid\_164808\
**Created:** [September 9, 2008, 4:12pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159 "2008-09-09T16:12:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivianchan\_x](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vivianchan\_x](https://forum.fixtrading.org/u/vivianchan_x)\
**Post date:** [September 9, 2008, 4:12pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/1 "2008-09-09T16:12:25Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![vivianchan\_x](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vivianchan\_x](https://forum.fixtrading.org/u/vivianchan_x)\
**Post date:** [September 9, 2008, 4:12pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/2 "2008-09-09T16:12:25Z")

</div>

what is the major tag to login the FIX? what is the login syntax to  
logon the FIX system?

---

<div class="post-metadata">

**Author:** ![danielsaad84\_x](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@danielsaad84\_x](https://forum.fixtrading.org/u/danielsaad84_x)\
**Post date:** [September 9, 2008, 4:27pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/3 "2008-09-09T16:27:33Z")

</div>

> what is the major tag to login the FIX? what is the login syntax to  
> logon the FIX system?

Vivian,

The Logon Message should always be the FIRST message process on any FIX Session. The message is defined by the MsgType Field(35=A). Logins should always be relayed between parties before any application messages are transmitted.

I’d suggest taking a look at the FIX Spec - 4.0 Session - for details.  
You can also take a look at [www.openfix.net](http://www.openfix.net)

😉

dan saad - “I do the FIX”

---

<div class="post-metadata">

**Author:** ![vinodpatil\_x](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@vinodpatil\_x](https://forum.fixtrading.org/u/vinodpatil_x)\
**Post date:** [September 10, 2008, 6:09am UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/4 "2008-09-10T06:09:00Z")

</div>

> > what is the major tag to login the FIX? what is the login syntax to  
> > logon the FIX system?
> 
> Vivian,
> 
> The Logon Message should always be the FIRST message process on any FIX  
> Session. The message is defined by the MsgType Field(35=A). Logins  
> should always be relayed between parties before any application messages  
> are transmitted.
> 
> I’d suggest taking a look at the FIX Spec - 4.0 Session - for details.  
> You can also take a look at [www.openfix.net](http://www.openfix.net)
> 
> 😉
> 
> dan saad - “I do the FIX”

In many cases the logon desires the username and password validation for business layer like Risk Management System. There are no such tags defined in earlier version of FIX i.e 4.0,4.1. In that case you might want to agree with the thirdparty and come up with custom tags which is allowed under the FIX Protocol. Also you can find the existing tags used by other vendors listed under [http://www.fixprotocol.org/specifications/fields/6000-6999](http://www.fixprotocol.org/specifications/fields/6000-6999).

You will have to find the tags used for username / password so that you are along with majority.

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [September 11, 2008, 4:06am UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/5 "2008-09-11T04:06:19Z")

</div>

[original email was from Sunil Singh - [sunil.singh@gs.com](mailto:sunil.singh@gs.com) ]  
Hi Vivian,

Here’s a sample logon fix message:

2008/02/23 16:28:13:142: CommServer: Received connection from: Socket[69.184.53.24/202.207.181.177, port=62559,localport=8000]  
2008/02/23 16:28:13:148: FIXCommConnection: Connection from : Socket[addr=/69.184.53.24,port=62559,localport=8000] accepted and identified as: ABCUAT  
2008/02/23 16:28:13:148: FIXPump: Received data on connection {ABCUAT} [8=FIX.4.0\_9=0078\_35=A\_49=ABCUAT\_56=XYZTEST\_34=1\_52=20080223-16:28:07\_98=0\_108=30\_10=214\_]  
2008/02/23 16:28:13:149: FIXConnectionData: Sending data on connection {ABCUAT} [8=FIX.4.0\_9=0069\_35=A\_34=1\_49=XYZTEST\_56=ABCUAT\_52=20080223-16:28:13\_98=0\_108=30\_10=190\_]  
2008/02/23 16:28:13:149: FIXFormatter: FIX session established on connection: ABCUAT

Regards,  
Sunil Singh

---

<div class="post-metadata">

**Author:** ![wayneharrison\_x](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@wayneharrison\_x](https://forum.fixtrading.org/u/wayneharrison_x)\
**Post date:** [March 3, 2009, 1:15pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/6 "2009-03-03T13:15:48Z")

</div>

> > what is the major tag to login the FIX? what is the login syntax to  
> > logon the FIX system?
> 
> Vivian,
> 
> The Logon Message should always be the FIRST message process on any FIX  
> Session. The message is defined by the MsgType Field(35=A). Logins  
> should always be relayed between parties before any application messages  
> are transmitted.
> 
> I’d suggest taking a look at the FIX Spec - 4.0 Session - for details.  
> You can also take a look at [www.openfix.net](http://www.openfix.net)
> 
> 😉
> 
> dan saad - “I do the FIX”

Dan,

Your message touches on something that I’ve encountered recently and I wondered if you, or anyone else, could clarify something for me. I don’t know whether you meant to imply that authentication handshaking (i.e. the exchange of Logon messages) must be completed before application messages can be sent, but the FIX.4.0 spec does not seem to me to be so clear.

For instance, in the section “SESSION PROTOCOL” it states “A FIX session is comprised of three parts: logon, message exchange and logout.”, which kind of implies that logon must be completed before message exchange can begin. However, shortly after this in the same section, in the subsection “Logon” it states “The session initiator may begin to send messages immediately following the Logon message, however, the session may not be supported by the other side at this time. The initiator must wait for the confirming Logon message from the acceptor before declaring the session fully established.”

Does this mean that the initiator may send application messages before receiving a Logon message from the acceptor if the parties concerned have a bilateral agreement in place? Obviously, messages received before a session is “fully established” should not be processed, but they could be queued.

Wayne.

---

<div class="post-metadata">

**Author:** ![seanholohan\_x](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@seanholohan\_x](https://forum.fixtrading.org/u/seanholohan_x)\
**Post date:** [March 6, 2009, 6:02pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/7 "2009-03-06T18:02:53Z")

</div>

> Dan,
> 
> Your message touches on something that I’ve encountered recently and I  
> wondered if you, or anyone else, could clarify something for me. I  
> don’t know whether you meant to imply that authentication handshaking  
> (i.e. the exchange of Logon messages) must be completed before  
> application messages can be sent, but the FIX.4.0 spec does not seem to  
> me to be so clear.
> 
> For instance, in the section “SESSION PROTOCOL” it states “A FIX session  
> is comprised of three parts: logon, message exchange and logout.”, which  
> kind of implies that logon must be completed before message exchange can  
> begin. However, shortly after this in the same section, in the  
> subsection “Logon” it states “The session initiator may begin to send  
> messages immediately following the Logon message, however, the session  
> may not be supported by the other side at this time. The initiator must  
> wait for the confirming Logon message from the acceptor before declaring  
> the session fully established.”
> 
> Does this mean that the initiator may send application messages before  
> receiving a Logon message from the acceptor if the parties concerned  
> have a bilateral agreement in place? Obviously, messages received before  
> a session is “fully established” should not be processed, but they could  
> be queued.
> 
> Wayne.

Wayne, there is no prohibition in the FIX spec that prevents the initiator from sending messages as soon as a Logon message has been sent. But it’ll likely make state handling and encryption a good deal more difficult.

From the acceptor side, there’s no reason why it couldn’t queue up the messages – that’s really just a transport issue.

Before discussing how someone might do this, I’d ask for the use-case. Is there really a reason that an initiator would want to send a series of messages before the connection has been established? I’m not closed to the idea, just interested what reasons there might be. The one reason I could think off-hand is that an initiator is occasionally bringing up a FIX message to blast some messages really quickly before shutting down the session. But that’d probably trying to fix a transport/bandwidth issue and would be better solved via FIX 5.0 with a change of transport semantics.

---

<div class="post-metadata">

**Author:** ![wayneharrison\_x](https://avatars.discourse-cdn.com/v4/letter/w/45deac/32.png) [@wayneharrison\_x](https://forum.fixtrading.org/u/wayneharrison_x)\
**Post date:** [March 9, 2009, 1:35pm UTC](https://forum.fixtrading.org/t/logon-to-the-fix/13159/8 "2009-03-09T13:35:54Z")

</div>

> Wayne, there is no prohibition in the FIX spec that prevents the  
> initiator from sending messages as soon as a Logon message has been  
> sent. But it’ll likely make state handling and encryption a good deal  
> more difficult.
> 
> From the acceptor side, there’s no reason why it couldn’t queue up the  
> messages – that’s really just a transport issue.
> 
> Before discussing how someone might do this, I’d ask for the use-case.  
> Is there really a reason that an initiator would want to send a series  
> of messages before the connection has been established? I’m not closed  
> to the idea, just interested what reasons there might be. The one reason  
> I could think off-hand is that an initiator is occasionally bringing up  
> a FIX message to blast some messages really quickly before shutting down  
> the session. But that’d probably trying to fix a transport/bandwidth  
> issue and would be better solved via FIX 5.0 with a change of transport  
> semantics.

Sean,

Thanks for your reply. What you say makes perfect sense and fits in with my reading of the FIX.4.0. I don’t have a specific use-case, I’m just trying to get a handle on the FIX protocol. I have experience with other protocols and it seemed a little unusual, so I wanted to ensure that I hadn’t misunderstood the spec.

Wayne.
