bersuc / CheckSum-Calculator

Fix Protocol CheckSum Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CheckSum Calculator for FIX Protocol Messages

Fix Protocol CheckSum Calculator

How to use it

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

About

Fix Protocol CheckSum Calculator

License:MIT License


Languages

Language:Go 65.0%Language:JavaScript 35.0%