|
From: Mohammad K. L. <kam...@gm...> - 2007-04-12 07:38:46
|
Hi there!! I want to send some user-defined data in my fix message,e.g current customer name,how can I create and send a user-defined field with my message? Thanks in advance, Kamran. |
|
From: Toli K. <to...@ma...> - 2007-04-12 15:32:37
|
Mohammad, You can set the custom fields manually like this: msg.setField(new StringField(7777, "customValue")); Or you can use a type other than StringField. Keep in mind that if you want your message to validate, you'll need to modify the FIX4x.xml file appropriately and specify that in your settings where you specify the data dictionary file. Here's an example of a custom field we created: http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main/java/org/marketcetera/quickfix/customfields/NoMarketDataSnapshots.java You can also look through our OrderLoader code to see how it handles cutsom fields and injects them into messages: http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/orderloader/src/main/java/org/marketcetera/orderloader Hope this helps. On 4/12/07, Mohammad Kamran Liaqat <kam...@gm...> wrote: > QuickFIX/J Documentation: > http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > Hi there!! > > I want to send some user-defined data in my fix message,e.g current customer > name,how can I create and send a user-defined field with my message? > > Thanks in advance, > Kamran. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. |
|
From: Mohammad K. L. <kam...@gm...> - 2007-04-16 07:21:03
|
Hi Toli! I have created the User Defined field on the client side like this, *order.setField(new StringField(6600,"Customer Name"));* How do I manage it on the server side,so I need to create a field over there as well and what should be the code for that? Regards, Kamran. * * On 4/12/07, Toli Kuznets <to...@ma...> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Mohammad, > > You can set the custom fields manually like this: > msg.setField(new StringField(7777, "customValue")); > > Or you can use a type other than StringField. > > Keep in mind that if you want your message to validate, you'll need to > modify the FIX4x.xml file appropriately and specify that in your > settings where you specify the data dictionary file. > > Here's an example of a custom field we created: > > http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main/java/org/marketcetera/quickfix/customfields/NoMarketDataSnapshots.java > > You can also look through our OrderLoader code to see how it handles > cutsom fields and injects them into messages: > > http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/orderloader/src/main/java/org/marketcetera/orderloader > > Hope this helps. > > On 4/12/07, Mohammad Kamran Liaqat <kam...@gm...> wrote: > > QuickFIX/J Documentation: > > http://www.quickfixj.org/documentation/ > > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi there!! > > > > I want to send some user-defined data in my fix message,e.g current > customer > > name,how can I create and send a user-defined field with my message? > > > > Thanks in advance, > > Kamran. > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Quickfixj-users mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > > > > > -- > Toli Kuznets > http://www.marketcetera.com: Open-Source Trading Platform > download.run.trade. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |
|
From: Toli K. <to...@ma...> - 2007-04-16 08:38:29
|
Mohammad, > I have created the User Defined field on the client side like this, > order.setField(new StringField(6600,"Customer Name")); > How do I manage it on the server side,so I need to create a field over there > as well and what should be the code for that? You can do order.geString(6600) to get your field back. You can, of course, add the field to the data dictionary XML file, load that into your client and server so that your messages are validated correctly as well. does that answer your question? -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. |
|
From: Mohammad K. L. <kam...@gm...> - 2007-04-16 08:42:40
|
Hi Toli! Yes it does answer my question,,thanks bundles,, Regards, Kamran. On 4/16/07, Toli Kuznets <to...@ma...> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Mohammad, > > > I have created the User Defined field on the client side like this, > > order.setField(new StringField(6600,"Customer Name")); > > How do I manage it on the server side,so I need to create a field over > there > > as well and what should be the code for that? > > You can do order.geString(6600) to get your field back. > > You can, of course, add the field to the data dictionary XML file, > load that into your client and server so that your messages are > validated correctly as well. > > does that answer your question? > > -- > Toli Kuznets > http://www.marketcetera.com: Open-Source Trading Platform > download.run.trade. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |