{{Quickfixn}} Quickfixn Digest, Vol 112, Issue 9

alancloughley at hotmail.com alancloughley at hotmail.com
Thu Feb 25 04:54:11 PST 2021


When looking at the FixValues.cs code it should be pulling the description form the xml as a string, so when you call string it is should return the description string.

 

https://github.com/connamara/quickfixn/blob/master/QuickFIXn/FixValues.cs

 

Does anyone know in what circumstances the string description can not be called?

 

From: alancloughley at hotmail.com <alancloughley at hotmail.com> 
Sent: 24 February 2021 19:06
To: 'Mailing list for QuickFIX/n' <quickfixn at lists.quickfixn.com>
Subject: RE: {{Quickfixn}} Quickfixn Digest, Vol 112, Issue 9

 

Thanks Francis,

 

That’s odd because my previous build to a different broker I was able to output the strings using; 

       

var myOrdStatus = m.Get(new OrdStatus()).getValue();

var mySide = m.Get(new Side()).getValue();

…..

……

              Console.WriteLine("\nExecutionReport: {0} {1} {2}", m.GetType(),myOrdStatus, mySide);

 

Any idea why I can get the strings from one build but not the other? I can’t see what is different to cause this apart from the xml data ditionary however these are very similar, the fields within the Execution message section are identical. I’m struggling to understand why one build works but the other doesn’t?

 

Cheers

 

A

 

From: Quickfixn <quickfixn-bounces at lists.quickfixn.com <mailto:quickfixn-bounces at lists.quickfixn.com> > On Behalf Of Francis Gingras
Sent: 24 February 2021 15:52
To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> >
Subject: Re: {{Quickfixn}} Quickfixn Digest, Vol 112, Issue 9

 

Hi,

OrdStatus is a CHAR field. You'll need to write your own parser to convert the value to a string like 'filled'.

See https://www.onixs.biz/fix-dictionary/4.2/tagnum_39.html

 

Francis

 

 

On Wed, Feb 24, 2021 at 8:28 AM <quickfixn-request at lists.quickfixn.com <mailto:quickfixn-request at lists.quickfixn.com> > wrote:

Send Quickfixn mailing list submissions to
        quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> 

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
or, via email, send a message with subject or body 'help' to
        quickfixn-request at lists.quickfixn.com <mailto:quickfixn-request at lists.quickfixn.com> 

You can reach the person managing the list at
        quickfixn-owner at lists.quickfixn.com <mailto:quickfixn-owner at lists.quickfixn.com> 

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quickfixn digest..."
Today's Topics:

   1.  Message values (alancloughley at hotmail.com <mailto:alancloughley at hotmail.com> )
   2. Re:  Message values (Lanfranco Morini)



---------- Forwarded message ----------
From: <alancloughley at hotmail.com <mailto:alancloughley at hotmail.com> >
To: "'Mailing list for QuickFIX/n'" <quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> >
Cc: 
Bcc: 
Date: Wed, 24 Feb 2021 12:46:04 -0000
Subject: {{Quickfixn}} Message values

Hi all,

 

Looking for a bit of advice on getting values from messages. I’ve looked online but can’t find a solution or info to help me better understand why it is not working as expected.

 

On my first initiator build I was able to get the field description from a received message and display that string. For example an Executionreport message m, I could do; m.Get(new OrdStatus()).getValue().ToString(); and I would get the string as the field description e.g “FILLED”. On my current initiator build to a new broker the same method gives me the CHAR value of the field only, so instead of getting the string “FILLED” I just get “2”. I’ve tried various different combinations of Get, getVaue, GetString etc but I cannot get the description string, whatever I try the output is always “2”. Is there some specific code that I need to use to get the field description output? Like I said the previous broker connection worked, this time it does not which I find odd. Both data dictionaries for current and previous build have the exact same field chars and descriptions listed on the xml file.

 

Thanks for any help here.

 

A 




---------- Forwarded message ----------
From: Lanfranco Morini <Lanfranco.Morini at cegeka.it <mailto:Lanfranco.Morini at cegeka.it> >
To: "Mailing list for QuickFIX/n" <quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> >
Cc: 
Bcc: 
Date: Wed, 24 Feb 2021 13:27:52 +0000
Subject: Re: {{Quickfixn}} Message values

Hi Alan,

did you already try with 

m.GetString(Tags.OrdStatus) ?

 

Best,

Lan

 


Lanfranco Giuseppe Morini 
APPLICATIONS  

	


 

	

E  Lanfranco.Morini at cegeka.it <mailto:Lanfranco.Morini at cegeka.it> 
T +39 02 254427 1    
M +39 347 7282717

 

 

From: Quickfixn <quickfixn-bounces at lists.quickfixn.com <mailto:quickfixn-bounces at lists.quickfixn.com> > On Behalf Of alancloughley at hotmail.com <mailto:alancloughley at hotmail.com> 
Sent: mercoledì 24 febbraio 2021 13:46
To: 'Mailing list for QuickFIX/n' <quickfixn at lists.quickfixn.com <mailto:quickfixn at lists.quickfixn.com> >
Subject: {{Quickfixn}} Message values

 

Hi all,

 

Looking for a bit of advice on getting values from messages. I’ve looked online but can’t find a solution or info to help me better understand why it is not working as expected.

 

On my first initiator build I was able to get the field description from a received message and display that string. For example an Executionreport message m, I could do; m.Get(new OrdStatus()).getValue().ToString(); and I would get the string as the field description e.g “FILLED”. On my current initiator build to a new broker the same method gives me the CHAR value of the field only, so instead of getting the string “FILLED” I just get “2”. I’ve tried various different combinations of Get, getVaue, GetString etc but I cannot get the description string, whatever I try the output is always “2”. Is there some specific code that I need to use to get the field description output? Like I said the previous broker connection worked, this time it does not which I find odd. Both data dictionaries for current and previous build have the exact same field chars and descriptions listed on the xml file.

 

Thanks for any help here.

 

A 

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com <mailto:Quickfixn at lists.quickfixn.com> 
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210225/b4f01db1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 8099 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210225/b4f01db1/attachment-0002.jpg>


More information about the Quickfixn mailing list