[Quickfix-developers] Adding fields to the message
Brought to you by:
orenmnero
From: amit k. <kha...@gm...> - 2009-06-17 17:24:36
|
Hello Oren: I am new to quickfix and I am currently exploring it to see if I can use it in my project. My use case is as follows. 1. Create a session 2. Send a logon request 3. Send a market data request 4. Receive market data and log it to a file I have modified the tradeClient examples to send the market data request. In the current version of the Logon.h it doesn't allow me to set the password. I have modified the code of Logon.h to have an extra method to set the password. Now, generateLogon method of session is creates a Logon message. It doesn't set the password field. I can modify that code also and make it set the password. However, I am wondering if there is a mechanism by which I don't have to modify the code but just give it some sort of a dictionary to say here the fields that should be populated for a given message. TIA. Please advise. Cheers, Amit Khandelwal PS: Please see the email chain below for the discussion so far. ---------- Forwarded message ---------- From: <ned...@ao...> Date: Wed, Jun 17, 2009 at 1:19 PM Subject: Re: [Quickfix-developers] Adding fields to the message To: kha...@gm... Hey Andri, Sorry I couldn't be of more help. Wait for another reply from somebody who is more knowledgable. You can always email Oren Miller ( or...@qu...). I have found that very helpful in the past. Good luck Ned -----Original Message----- From: amit khandelwal <kha...@gm...> To: ned...@ao... Sent: Wed, Jun 17, 2009 9:06 am Subject: Re: [Quickfix-developers] Adding fields to the message Andrei: I don't initiate logon message myself. It is initiated by the "Session" class of QuickFix. Also, the Logon message class is defined in the QuickFix source code. When you say it is application specific, do you mean to say that the code outside of QuickFix? Ned, I have specified the password the configuration file. There are two issues 1. Logon class doesn't have a method to set(FIELD_SET) for the password 2. generateLogon function inside the Session class doesn't set the password field on the logon object. I have modified the code of the Logon class to be able set the password field. I can modify the code of Session class also to do the same. Just wanted to check if I am going down the right track or if there is any other mechanism. On Wed, Jun 17, 2009 at 8:16 AM, <ned...@ao...> wrote: > I beleive you can specify the password in the configuration file. Have you > looked at the onlne documentation for the web site about the configuration > file? > > I hope this helps. > > Ned > > > -----Original Message----- > From: amit khandelwal <kha...@gm...> > To: qui...@li... > Sent: Tue, Jun 16, 2009 4:06 pm > Subject: [Quickfix-developers] Adding fields to the message > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I am new to quickfix and I am currently exploring it to see if I can use > it in my project. My use case is as follows. > > 1. Create a session > 2. Send a logon request > 3. Send a market data request > 4. Receive market data and log it to a file > > I have modified the tradeClient examples to send the market data request. > In the current version of the Logon.h it doesn't allow me to set the > password. I have modified the code of Logon.h to have an extra method to set > the password. Now, generateLogon method of session is creates a Logon > message. It doesn't set the password field. I can modify that code also and > make it set the password. However, I am wondering if there is a mechanism by > which I don't have to modify the code but just give it some sort of a > dictionary to say here the fields that should be populated for a given > message. > > TIA. > > Please advise. > > Cheers, > Amit Khandelwal > > > -- > ------------------------------------------------------------------- > Ph : (973)-896-8208 > Email: kha...@gm... > Web: http://khandelwal.amit.googlepages.com/home > ------------------------------------------------------------------- > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment.http://p.sf.net/sfu/businessobjects > > _______________________________________________ > Quickfix-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > ------------------------------ > Dell Days of Deals! June 15-24 - A New Deal Everyday! > -- ------------------------------------------------------------------- Ph : (973)-896-8208 Email: kha...@gm... Web: http://khandelwal.amit.googlepages.com/home ------------------------------------------------------------------- ------------------------------ Dell Days of Deals! June 15-24 - A New Deal Everyday!<http://pr.atwola.com/promoclk/100126575x1222865043x1201494942/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclk%3B215692145%3B38015538%3Bh> -- ------------------------------------------------------------------- Ph : (973)-896-8208 Email: kha...@gm... Web: http://khandelwal.amit.googlepages.com/home ------------------------------------------------------------------- |