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

Mohammed Quwaider momo505 at msn.com
Tue Sep 18 09:09:18 PDT 2018


Thank Christoph,
Kindly note that the counterparty uses Cap-fix engine which requires password when logon, and after successful logon they request to reset the sequence number and change the TargetSubID to something different also they request sending tags  <D> , <G> , <F> with another ID for SenderCompID to be 1 instead 0  also they needs the tags fields for <D> , <G> , <F> to be sorted in specific sort

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

________________________________
From: Christoph John <christoph.john at macd.com>
Sent: Tuesday, September 18, 2018 5:32:56 PM
To: Mailing list for QuickFIX/n; Mohammed Quwaider
Subject: Re: {{Quickfixn}} Quickfixn Fix 4.2 How to Send & Receive messages to different TargetCompID in same session

Are you sure that they require you to address different Target*Comp*IDs in 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<mailto: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<mailto:christoph.john at macd.com>

MACD GmbH
Oppenhoffallee 103
52066 Aachen, Germany
www.macd.com<http://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/ff2c8d45/attachment.htm>


More information about the Quickfixn mailing list