{{Quickfixn}} Cracker fails to crack float?

Grant Birchmeier gbirchmeier at connamara.com
Thu Sep 3 08:53:11 PDT 2015


In the default FIX4.2 dictionary, all three of those "0.61" fields (14, 32,
119) are Amt or Qty fields, which QF/n treats as DecimalFields.  (See the
switch at the bottom of
https://github.com/connamara/quickfixn/blob/master/QuickFIXn/DataDictionary/DDField.cs
)

Given that, I'm thinking the problem might be in your code, not the engine.

What are your code lines at OrdersInitiator 945 and 1051?

On Thu, Sep 3, 2015 at 10:43 AM, xmoon 2000 <xmoon2000 at googlemail.com>
wrote:

> I received this message for an amount of 0.61 - Yes - really that small
>
> 20150903T145922.588 FromApp:
> 8=FIX.4.2|9=373|35=8|34=294|49=FX-FIX|52=20150903-14:59:22.579|56=DB|57=DB|6=1.31148|11=B000146|14=0.61|15=USD|17=TRD_150870492|20=0|31=1.3162|32=0.61|37=68050380042
> 5|38=242000|39=1|44=1.31655|54=1|55=USD/CAD|59=3|60=20150903-14:59:22.578|64=20150904|75=20150903|76=Y|119=0.61|120=USD|150=F|151=241999.39|167=FOR|192=0.8|382=1|375=Not
> Available|10=101|
>
> But Cracker threw an exception saying it expected an int:
>
> Cracker Exception: QuickFix.FieldConvertError: Could not convert field:
> Could not convert string to int (0.61) ---> System.FormatException: Input
> string was not in a correct format.
>
>    at System.Number.StringToNumber(String str, NumberStyles options,
> NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
>
>    at System.Number.ParseInt32(String s, NumberStyles style,
> NumberFormatInfo info)
>
>    at QuickFix.Fields.Converters.IntConverter.Convert(String i)
>
>    --- End of inner exception stack trace ---
>
>    at QuickFix.Fields.Converters.IntConverter.Convert(String i)
>
>    at QuickFix.FieldMap.GetInt(Int32 tag)
>
>    at CallSite.Target(Closure , CallSite , Object , Int32 )
>
>    at SlotManager.OrdersInitiator.OnMessageAgnostic(Message aGmessage,
> SessionID sessionID) in
> C:\Projects\Slot2Manager\Slot2Manager\OrdersInitiator.cs:line 1051
>
>    at SlotManager.OrdersInitiator.OnMessage(ExecutionReport message,
> SessionID sessionID) in
> C:\Projects\Slot2Manager\Slot2Manager\OrdersInitiator.cs:line 945
>
>    at QuickFix.MessageCracker.Crack(Message message, SessionID sessionID)
>
>    at SlotManager.OrdersInitiator.FromApp(Message msg, SessionID
> sessionID) in C:\Projects\Slot2Manager\Slot2Manager\OrdersInitiator.cs:line
> 922 _________________
>
>
> What might have caused this please?
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20150903/10f6ff02/attachment-0002.htm>


More information about the Quickfixn mailing list