Imported from previous forum
Hello all ,
I wrote a simple c# program sending a fix login message to mbtrading
I think i am creating a the fix login message wrong :
here is my output message
"8=FIX.4.4 9=64 35=A 49=**** 56=MBT 52=20091226-14:17:50 98=0 554=AD8C8A0692F9B051E0A6CA3ED6123F7430C3CBF08E3ABF15E54F47D92E93C3C7 10=015 108=30"
where for 554 tag i am using sha256encrypt function
35=A for login message
49=sendcompid
56=targetcompid
52=sending time
98=0 means no encryptionmethod
—>>10=i might be wrong here --???
108=30 number of seconds between heartbeats(should be 30)
I was trying this string serveral time i didnt get any response from their servers i got no exceprions as well .
i am using
server.BeginReceive(GlobalVar.GlobalValueByteGetreceive, 0, GlobalVar.GlobalValueByteGetreceive.Length, SocketFlags.None, new AsyncCallback(ReceivedData), server);
and i am not getting response on ReceivedData function …
please i need a direction where to start?
Best regards
eyal
First of all, tag 10 (checksum) should be the last tag of message. Also, please check value of tag 9. Calculation of message length is started from tag number 35 and should be finished on SOH-symbol before tag 10.
Here is an example of correct Logon:
8=FIX.4.49=5735=A49=DEF56=ABC34=152=20091227-18:34:1998=0108=3010=218
Next string included into calculation of length - “35=A49=DEF56=ABC34=152=20091227-18:34:1998=0108=30”
Hello all , I wrote a simple c# program sending a fix login message to
mbtrading I think i am creating a the fix login message wrong : here is
my output message “8=FIX.4.4 9=64 35=A 49=**** 56=MBT 52=20091226-
14:17:50 98=0
554=AD8C8A0692F9B051E0A6CA3ED6123F7430C3CBF08E3ABF15E54F47D92E93C3C7
10=015 108=30” where for 554 tag i am using sha256encrypt function 35=A
for login message 49=sendcompid 56=targetcompid 52=sending time 98=0
means no encryptionmethod —>>10=i might be wrong here --???
108=30 number of seconds between heartbeats(should be 30) I was trying
this string serveral time i didnt get any response from their servers i
got no exceprions as well . i am using
server.BeginReceive(GlobalVar.GlobalValueByteGetreceive, 0,
GlobalVar.GlobalValueByteGetreceive.Length, SocketFlags.None, new
AsyncCallback(ReceivedData), server); and i am not getting response on
ReceivedData function … please i need a direction where to start? Best
regards eyal