{{Quickfixn}} Override TargetSubID in Quickfix logon header Fix 4.2

Grant Birchmeier gbirchmeier at connamara.com
Mon Sep 10 07:01:17 PDT 2018


I think I had a similar problem some time back.

My solution was to leave the TargetSubID out of the session config (so that
QF wouldn't use it as part of the SessionID), but set it in FromAdmin when
appropriate, like you have, but also in FromApp if needed, depending on
your counterparty's expectation.

So, if you take TargetSubID out of your session config, the engine will
probably not overwrite your explicit value.

On Mon, Sep 10, 2018 at 12:19 AM, Mohammed Quwaider <momo505 at msn.com> wrote:

>
>
> I want to change the TargetSubID and as the blow fix message it doesn't
> replace the tag 57 it add's new tag 57 which result in failure logon what
> it the best method to replace TargetSubID with out adding new tag
>
>
>
> here is me code
>
> public void FromAdmin(Message message, SessionID sessionID)
>
> {
>
> if ((message.ToString().IndexOf("35=A") > 0) &&
> (message.ToString().IndexOf("141=Y") > 0))
>
>            {
>
> var message1 = new Message();
>
> message1.Header.SetField(new MsgType("A"));
>
> message1.Header.SetField(new SenderCompID("YYYY"));
>
> message1.Header.SetField(new SenderSubID("XXXX"));
>
> message1.Header.SetField(new TargetCompID("ZZZZ"));
>
> message1.SetField(new TargetSubID("WWWW"));
>
> message1.SetField(new ResetSeqNumFlag(true));
>
> message1.SetField(new StringField(108, "20"));
>
> message1.SetField(new StringField(98, "0"));
>
> SendMessage(message1);
>
> }
>
> }
>
> body of fix message
>
> 8=FIX.4.29=11735=A34=149=YYYY50=XXXX52=20180909-13:04:3056=ZZZZ*57=AAAA*
> 95=896=Passsss*141=N57=WWWW*98=0108=20*141=Y*10=004
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180910/39e6289f/attachment.htm>


More information about the Quickfixn mailing list