|
Algorithmic Trading
< Previous Next >
Re: fix logon problem with c#
Zoltan Feledy / State Street Global Advisors 7 Jan 2010 10:08PM ET Greg,
I am so sorry to have questioned you on this as you are definitely more of an authority having written FIX engines.
You are completely right, the delimiter is the "Start of Header" character, the second character in the ascii set as opposed to the null character as I incorrectly mentioned below.
As such, the code should read:
char delimiter = (char) 1;
As you correctly pointed out.
Deepest apologies.
Cheers,
Zoltan
>
> 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
Re: fix logon problem with c# Zoltan Feledy / State Street Global Advisors 7 Jan 2010 10:08PM ET |