{{Quickfixn}} Intercepting FIX50 Logon messages to set password
Grant Birchmeier
gbirchmeier at connamara.com
Mon Jan 14 13:47:15 PST 2013
The logon message is in the FIXT data dictionary, not the FIX50 one.
Unfortunately, I see we are not generating FIXT messages and fields.
That's weird and I don't like it. I'll open an issue to get to the
bottom of that.
I think, for now, you can work around it by using generic message
methods such as:
m.Header.GetString(35)=="A" // to test if Logon message
and
m.SetField(new Password("my_pass"));
It's not optimal, but it should get you through.
Please let me know if you have other FIX50 problems. I suspect the
FIX50 code is not as solid as the FIX4 code, so any bug reports would
be greatly welcomed.
-Grant
On Mon, Jan 14, 2013 at 3:06 PM, Andrew Culross
<Andrew.Culross at twofour.com> wrote:
>
>
>
>
> I’m used to the following construct for intercepting FIX42/FIX44 Logon
> messages to set the password field –
>
>
>
> I noticed in FIX 50 there is no QuickFix.FIX50.Logon message type – what is
> the approach for FIX 50 ?
>
>
>
> Thanks !
>
>
>
>
>
> public void ToAdmin(QuickFix.Message message, SessionID sessionID)
>
> {
>
> // if this is a logon message we need to intercept the callback
> to put
>
> // password and/or reset sequence information tags in the
> message
>
> if (message.GetType() == typeof(QuickFix.FIX42.Logon) ||
>
> message.GetType() == typeof(QuickFix.FIX43.Logon) ||
>
> message.GetType() == typeof(QuickFix.FIX44.Logon) ||
>
> message.GetType() == typeof(QuickFix.FIX50.Logon)
>
> {
>
>
>
>
>
>
>
> Andrew Culross
>
> TwoFour
>
> 10 Bank Street
>
> White Plains, NY 10601
>
> Direct +1 (914) 220-8849
>
> Main +1 (914) 220-8800
>
> Fax +1 (914) 220-8899
>
> www.TwoFour.com
>
> http://www.twofour.US.com/emaildisclaimer.aspx
>
>
>
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.
http://connamara.com
More information about the Quickfixn
mailing list