Fix Protocol CheckSum Calculator
Used as reference: https://stackoverflow.com/questions/32708068/how-to-calculate-checksum-in-fix-manually
- [node.js] v19.7.0
node checksum.js "8=FIX.4.2|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|"
OutPut
┌─────────┬───────────────────────────────────────────────────────────────────────────┐
│ (index) │ Values │
├─────────┼───────────────────────────────────────────────────────────────────────────┤
│ Input │ '8=FIX.4.2|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|' │
│ Output │ '8=FIX.4.2|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|10=157|' │
└─────────┴───────────────────────────────────────────────────────────────────────────┘
- [GoLang] go1.20rc3
Update the file messages.txt with the messages you want to calculate. One message per line.
go run checksum.go
OutPut
8=FIX.4.2|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|10=157
8=FIX.4.4|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|10=159
8=FIX.5.0|9=49|35=5|34=1|49=ARCA|52=20150916-04:14:05.306|56=TW|10=156