{{Quickfixn}} Quickfixn Fix 4.2 How to Send & Receive messages to different TargetCompID in same session

Christoph John christoph.john at macd.com
Tue Sep 18 07:32:56 PDT 2018


Are you sure that they require you to address different Target*Comp*IDsin one session? That would be 
somewhat illegal in a FIX context since a FIX session is uniquely described by FIX version + 
SenderCompID + TargetCompID. So sending a message with a different TargetCompID to an already 
established session will not work.

Maybe they require you to address a different Target*Sub*ID?!

Otherwise it would make no sense.

Chris.

On 18/09/18 12:32, Mohammed Quwaider wrote:
>
> How to send & receive Fix messages to different TargetCompID in same session, The Exchange I 
> connect to give one session only and wants send Fix orders in different TargetCompID also 
> receiving execution report tag <8> in that same different TargetCompID other fixed messages uses 
> the original in the configuration file (TargetCompID=0)
>
> Can you give quick solution how to solve this issue.
>
> Config file
>
> [SESSION]
> BeginString=FIX.4.2
> SenderCompID=555
> SenderSubID= BBBBBB
> TargetCompID=0
>
> ToAdmin Code I use which doesn’t work
>
> public void ToAdmin(Message message, SessionID sessionID)
> {
> if ( (message.ToString().IndexOf("35=D") > 0) || (message.ToString().IndexOf("35=G") > 0) || 
> (message.ToString().IndexOf("35=F") > 0))
> {
>                message.Header.SetField(new TargetCompID("1"));
> }
> }
> 9:56:38 ToApp: 
> 8=FIX.4.2�9=261�35=D�34=63�49=555�50=BBBBBB�52=20180918-06:56:38�56=0�128=1�129=AAAAAA�1=555-----126�11=1�21=1�22=4�38=2500�40=2�44=0.03�47=C�48=JO3109211016�54=2�55=JO3109211016�58=Testing 
> Fix Connec�59=1�60=20180918-09:56:38.579�109=126�110=50�111=100�9596=2�9947=55500350�10=140�
> 9:56:38 Exchange: 
> 8=FIX.4.2�9=115�35=3�34=73�49=0�50=AAAAAA�52=20180918-09:56:38�56=555�45=63�58=cannot process 
> order: TargetCompID is invalid�372=D�10=067�
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

-- 
Christoph John
Software Engineering
T +49 241 557080-28
christoph.john at macd.com

MACD GmbH
Oppenhoffallee 103
52066 Aachen, Germany
www.macd.com

Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663
Geschäftsführer: George Macdonald

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180918/50748f69/attachment.htm>


More information about the Quickfixn mailing list