[Quickfix-developers] Incoming bad price fields
Brought to you by:
orenmnero
From: John D. <joh...@ch...> - 2004-04-26 13:31:58
|
Hi, I am receiving a double as a string value from a server application over which I have no control. They are not handling floating point numbers correctly (they are using native doubles), so I am getting values with rounding errors in them within the message. When this value is then = received by QuickFix, it rejects the message because it can't parse the field correctly (the message is an execution report). I am still wading = through the QuickFix code to find out where the rejection takes place, but in = the interim I was wondering if there is a way to get around this problem = without changing the code. Is there something I can set in my message definition file or something like that to get it to either accept a funky double = value, or to treat the double as a string and let me parse it? Is there a hook somewhere (like fromApp with a non-const Message) where I can fix the = value on the way in before QuickFix tries to build a typed message for it? For example, I am receiving a message of type 8, and am receiving a = LastPx and AvgPx value of 250.300000000000010, which QuickFix is rejecting. I'm using QuickFix 4.2. Thanks, John -----------------------------------------------------------=20 This email message is intended only for the addressee(s)=20 and contains information that may be confidential and/or=20 copyright. If you are not the intended recipient please=20 notify the sender by reply email and immediately delete=20 this email. Use, disclosure or reproduction of this email=20 by anyone other than the intended recipient(s) is strictly=20 prohibited. No representation is made that this email or=20 any attachments are free of viruses. Virus scanning is=20 recommended and is the responsibility of the recipient. Thank you. -----------------------------------------------------------=20 For more information on CTC, LLC please visit our website at:=20 http://www.chicagotrading.com. |