RE: [Quickfix-developers] Custom message
Brought to you by:
orenmnero
|
From: Shepheard, T. \(London\) <Tob...@ml...> - 2006-03-10 17:08:26
|
The "official" way to do it is to update the DataDictionary, and then it
becomes just another message type as far as quickfix is concerned. This
does mean that you'll have to do your own build though.
=20
=20
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Mike Smith
Sent: 10 March 2006 17:06
To: qui...@li...
Subject: RE: [Quickfix-developers] Custom message
I got it working, but it's definitely not the most elegant code.
=20
Message TraderLogin =3D new Message();
TraderLogin.getHeader().setField(new BeginString("FIX.4.2"));
TraderLogin.getHeader().setField(new StringField(35, "CG"));
TraderLogin.getHeader().setField(new
SenderCompID(sessionID.getSenderCompID()));
TraderLogin.getHeader().setField(new SenderSubID("2"));
TraderLogin.getHeader().setField(new
TargetCompID(sessionID.getTargetCompID()));
TraderLogin.setField(new FIX.UserName("abc"));
TraderLogin.setField(new RawData("abc"));
TraderLogin.setField(new RawDataLength(3));
Session.sendToTarget(TraderLogin, sessionID);
=20
=09
_____ =20
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Mike Smith
Sent: Friday, March 10, 2006 10:47 AM
To: qui...@li...
Subject: [Quickfix-developers] Custom message
=20
Hi,
=20
I'm trying to connect to an exchange and they have a custom
Trader Login message with a message type of CG. Has anybody created a
custom message before? If so, could you send me a code sample or give
me a few tips?
=20
Thanks,
=20
Mike
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the =
sender, delete it and do not read, act upon, print, disclose, copy, =
retain or redistribute it. Click here for important additional terms =
relating to this e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
|