Re: [Quickfix-developers] Changing SenderCompID
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2005-03-29 16:59:53
|
Yeah, I've seen the CME's naughty behavior of using multiple SenderCompID's on a single session. QuickFIX has safety precautions in place that ensures any message send out always has the correct SenderCompID, TargetCompID and BeginString. If you want to disable this you will have to change change the Session::fill( Header ) method to do a something like this: if( !header.isSetField( FIELD::SenderCompID ) ) header.setField( m_sessionID.getSenderCompID() ) You will then need to make sure you use the SessionID to lookup your session, as your message will not have complete information to identify the correct session. This is a *really* specialized case, and I'm not sure the best way to add general support for something like this. I think many people rely on the current behavior for multiplexing which is really convenient to not have to worry about session ID's when routing your messages. This may just require another sendToTarget signature which allows you to override the sessionID. --oren ----- Original Message ----- From: "Shane Ryan" <Sr...@ty...> To: "Caleb Epstein" <cal...@gm...> Cc: "Oren Miller" <or...@qu...>; "James Wiggs" <wi...@wi...>; <qui...@li...> Sent: Tuesday, March 29, 2005 10:41 AM Subject: RE: [Quickfix-developers] Changing SenderCompID No From the CME's perspective the SenderCompID works like this: chars 1-3 are a session ID, chars 4-6, are the FirmID (the clearing house firm id that is) and char 7 is a single char that is set based on various conditions (usually P for primary server or B for backup server but there is a few other cases). The SenderSubID is for identifying a trader within a firm. --Shane -----Original Message----- From: Caleb Epstein [mailto:cal...@gm...] Sent: 29 March 2005 16:20 To: Shane Ryan Cc: Oren Miller; James Wiggs; qui...@li... Subject: Re: [Quickfix-developers] Changing SenderCompID On Tue, 29 Mar 2005 17:12:49 +0100, Shane Ryan <Sr...@ty...> wrote: > Is there a way to easily change the SenderCompID without starting a new > session? > > I am doing the ttCert tests and they want me to change the FirmID which > for them means changing the fourth, fifth, and sixth characters of the > SenderCompID. !?!?!? Isn't this what SenderSubID is for? -- Caleb Epstein caleb dot epstein at gmail dot com |