Thread: RE: [Quickfix-developers] Parsing FIX message string
Brought to you by:
orenmnero
|
From: Fanshteyn, T. <tfa...@bo...> - 2005-12-14 17:36:38
|
NET implementation doesn't seem to have that constructor -----Original Message----- From: Oren Miller [mailto:or...@qu...] Sent: Wednesday, December 14, 2005 12:36 PM To: Fanshteyn, Timur Cc: qui...@li... Subject: Re: [Quickfix-developers] Parsing FIX message string The Message class has a constructor which takes a string. Pass your message in there. If you have one, you can also pass in a DataDictionary into the constructor. --oren Fanshteyn, Timur wrote: > We are using QuickFix 10.0.2 with .NET > > How can I parse a message string into a QuickFix message. > > The reason for doing it is being able to send messages that are stored > in a database (resends), or to parse message logs and display user > readable information. > > Thanks for the help > > Timur |
|
From: Fanshteyn, T. <tfa...@bo...> - 2005-12-14 17:49:41
|
Actually, it has a constructor, but it doesn't seem to be doing the same
thing as regular message parsing does, It doesn't actually assign it to
the proper fields.:
QuickFix.Message m = new Message(textBox1.Text);
MessageBox.Show(m.ToXML()) ;
8=FIX.4.09=17935=834=349=BOFA56=BFPB43=N50=BOFA52=20050526-14:53:046=0.0
000000014=015=USD120=USD17=020=031=032=037=00000569850ORNY138=600039=044
=0.00000054=155=MSFT109=G9M10=005
Becomes:
<message>
<header>
<field number="8"><![CDATA[FIX.4.0]]></field>
<field number="9"><![CDATA[179]]></field>
<field number="35"><![CDATA[8]]></field>
<field number="34"><![CDATA[3]]></field>
<field number="43"><![CDATA[N]]></field>
<field number="49"><![CDATA[BOFA]]></field>
<field number="50"><![CDATA[BOFA]]></field>
<field number="52"><![CDATA[20050526-14:53:04]]></field>
<field number="56"><![CDATA[BFPB]]></field>
</header>
<body>
<field number="6"><![CDATA[0.00000000]]></field>
<field number="14"><![CDATA[0]]></field>
<field number="15"><![CDATA[USD]]></field>
<field number="17"><![CDATA[0]]></field>
<field number="20"><![CDATA[0]]></field>
<field number="31"><![CDATA[0]]></field>
<field number="32"><![CDATA[0]]></field>
<field number="37"><![CDATA[00000569850ORNY1]]></field>
<field number="38"><![CDATA[6000]]></field>
<field number="39"><![CDATA[0]]></field>
<field number="44"><![CDATA[0.000000]]></field>
<field number="54"><![CDATA[1]]></field>
<field number="55"><![CDATA[MSFT]]></field>
<field number="109"><![CDATA[G9M]]></field>
<field number="120"><![CDATA[USD]]></field>
</body>
<trailer>
<field number="10"><![CDATA[005]]></field>
</trailer>
</message>
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Fanshteyn, Timur
Sent: Wednesday, December 14, 2005 12:37 PM
To: Oren Miller
Cc: qui...@li...
Subject: RE: [Quickfix-developers] Parsing FIX message string
QuickFIX Documentation:
http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html
NET implementation doesn't seem to have that constructor
-----Original Message-----
From: Oren Miller [mailto:or...@qu...]
Sent: Wednesday, December 14, 2005 12:36 PM
To: Fanshteyn, Timur
Cc: qui...@li...
Subject: Re: [Quickfix-developers] Parsing FIX message string
The Message class has a constructor which takes a string. Pass your
message in there. If you have one, you can also pass in a
DataDictionary into the constructor.
--oren
Fanshteyn, Timur wrote:
> We are using QuickFix 10.0.2 with .NET
>
> How can I parse a message string into a QuickFix message.
>
> The reason for doing it is being able to send messages that are stored
> in a database (resends), or to parse message logs and display user
> readable information.
>
> Thanks for the help
>
> Timur
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems? Stop! Download the new AJAX search engine that
makes searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
|
|
From: Oren M. <or...@qu...> - 2005-12-14 17:57:53
|
This looks ok to me. Why do you think it is incorrect? --oren Fanshteyn, Timur wrote: >QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html >QuickFIX Support: http://www.quickfixengine.org/services.html > >Actually, it has a constructor, but it doesn't seem to be doing the same >thing as regular message parsing does, It doesn't actually assign it to >the proper fields.: > > QuickFix.Message m = new Message(textBox1.Text); > MessageBox.Show(m.ToXML()) ; > > >8=FIX.4.09=17935=834=349=BOFA56=BFPB43=N50=BOFA52=20050526-14:53:046=0.0 >000000014=015=USD120=USD17=020=031=032=037=00000569850ORNY138=600039=044 >=0.00000054=155=MSFT109=G9M10=005 > > >Becomes: > > ><message> > <header> > <field number="8"><![CDATA[FIX.4.0]]></field> > <field number="9"><![CDATA[179]]></field> > <field number="35"><![CDATA[8]]></field> > <field number="34"><![CDATA[3]]></field> > <field number="43"><![CDATA[N]]></field> > <field number="49"><![CDATA[BOFA]]></field> > <field number="50"><![CDATA[BOFA]]></field> > <field number="52"><![CDATA[20050526-14:53:04]]></field> > <field number="56"><![CDATA[BFPB]]></field> > </header> > <body> > <field number="6"><![CDATA[0.00000000]]></field> > <field number="14"><![CDATA[0]]></field> > <field number="15"><![CDATA[USD]]></field> > <field number="17"><![CDATA[0]]></field> > <field number="20"><![CDATA[0]]></field> > <field number="31"><![CDATA[0]]></field> > <field number="32"><![CDATA[0]]></field> > <field number="37"><![CDATA[00000569850ORNY1]]></field> > <field number="38"><![CDATA[6000]]></field> > <field number="39"><![CDATA[0]]></field> > <field number="44"><![CDATA[0.000000]]></field> > <field number="54"><![CDATA[1]]></field> > <field number="55"><![CDATA[MSFT]]></field> > <field number="109"><![CDATA[G9M]]></field> > <field number="120"><![CDATA[USD]]></field> > </body> > <trailer> > <field number="10"><![CDATA[005]]></field> > </trailer> ></message> > >-----Original Message----- >From: qui...@li... >[mailto:qui...@li...] On Behalf Of >Fanshteyn, Timur >Sent: Wednesday, December 14, 2005 12:37 PM >To: Oren Miller >Cc: qui...@li... >Subject: RE: [Quickfix-developers] Parsing FIX message string > >QuickFIX Documentation: >http://www.quickfixengine.org/quickfix/doc/html/index.html >QuickFIX Support: http://www.quickfixengine.org/services.html > >NET implementation doesn't seem to have that constructor > >-----Original Message----- >From: Oren Miller [mailto:or...@qu...] >Sent: Wednesday, December 14, 2005 12:36 PM >To: Fanshteyn, Timur >Cc: qui...@li... >Subject: Re: [Quickfix-developers] Parsing FIX message string > >The Message class has a constructor which takes a string. Pass your >message in there. If you have one, you can also pass in a >DataDictionary into the constructor. > >--oren > >Fanshteyn, Timur wrote: > > > >>We are using QuickFix 10.0.2 with .NET >> >>How can I parse a message string into a QuickFix message. >> >>The reason for doing it is being able to send messages that are stored >> >> > > > >>in a database (resends), or to parse message logs and display user >>readable information. >> >>Thanks for the help >> >>Timur >> >> > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log >files for problems? Stop! Download the new AJAX search engine that >makes searching your log files as easy as surfing the web. DOWNLOAD >SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Quickfix-developers mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Quickfix-developers mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > |