[This message was posted by Zoltan Feledy of State Street Global Advisors <[email protected]> to the "Algorithmic Trading" discussion forum at http://fixprotocol.org/discuss/31. You can reply to it on-line at http://fixprotocol.org/discuss/read/56da59cf - PLEASE DO NOT REPLY BY MAIL.]
The first character in the ASCII set is the null character, the delimiter in FIX messages. The ascii set is numbered 0-127 in decimals. Here is a reference to get the decimal, octal, and hexadecimal values: http://www.asciitable.com/ For the sake of completeness, the character data type in C# actually uses Unicode. Casting the integer 0 to a character data type will return the first Unicode character. The below line of code therefore takes advantage of the fact that the first 128 Unicode characters are the same as the ASCII characters as Unicode is just an extension of the ASCII set. The code below therefore returns the correct delimiter. > Hi Zoltan, > > Your analysis is correct, but you have the wrong delimiter value. FIX > fields are delimited with an ASCII 1, not 0. > > Eyal, > > If you would like to use a FIX testing tool, you can also try out FIX > Tester at www.jettekfix.com. It may shed some light on errors you face. > > Regards, Greg. > > > > do you know where can i test this fix message? > > > > nt.Append("8=FIX.4.4/9=136/35=A/49=*****/56=***/34=596") > > > > It appears that you are delimiting your fields with "/". This will not > > work with any FIX engine. Fields should be delimited with the ascii > > null character, which is the first character in the set. In C# it > > would be something like: > > > > char delimiter = (char) 0; > > > > To test FIX messages, you can use one of the free FIX engines or > > applications. > > > > http://www.quickfixj.org/ http://fiximulator.org/ > > > > FIXimulator is built using QuickFIX/J and is fairly well documented. > > It only supports FIX 4.2 at this time though so you would need to > > change your test message if you're sending anything to it. > > > > Hope this helps. > > > > Cheers, Zoltan [You can unsubscribe from this discussion group by sending a message to mailto:[email protected]]
-- You received this message because you are subscribed to the Google Groups "Financial Information eXchange" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/fix-protocol?hl=en.
