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

Francis Gingras francis at collective2.com
Wed Feb 24 07:52:09 PST 2021


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>
wrote:

> Send Quickfixn mailing list submissions to
>         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
>
> You can reach the person managing the list at
>         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)
>    2. Re:  Message values (Lanfranco Morini)
>
>
>
> ---------- Forwarded message ----------
> From: <alancloughley at hotmail.com>
> To: "'Mailing list for QuickFIX/n'" <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>
> To: "Mailing list for QuickFIX/n" <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 <Lanfranco.Morini at cegeka.it>*
> *T *+39 02 254427 1
> *M* +39 347 7282717
>
>
>
>
>
> *From:* Quickfixn <quickfixn-bounces at lists.quickfixn.com> *On Behalf Of *
> alancloughley at hotmail.com
> *Sent:* mercoledì 24 febbraio 2021 13:46
> *To:* 'Mailing list for QuickFIX/n' <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
> 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/20210224/8de89c6d/attachment-0001.html>
-------------- 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/20210224/8de89c6d/attachment-0001.jpg>


More information about the Quickfixn mailing list