FIX message example: an order and its ExecutionReport, tag by tag
A FIX message is a line of tag=value fields. Here is a real pair from a FIX 4.4 log, a new order and its acknowledgement, read field by field, with the two checks every FIX engine makes before reading anything else.
The FIX message format
Every FIX message is a list of fields written tag=value, separated by the SOH character (byte 0x01). Log files and tickets often show SOH as | or ^A. The tag is a number defined by the FIX dictionary of the version: 35 is MsgType, 11 is ClOrdID, 39 is OrdStatus.
A message has three parts. The header starts with 8 BeginString, 9 BodyLength and 35 MsgType, always in that order, then 34 MsgSeqNum, 49 SenderCompID, 52 SendingTime and 56 TargetCompID. The body holds the business fields. The trailer is the last field, 10 CheckSum.
A FIX message example from a log
These two lines come from a QuickFIX message log we wrote to test the extension (fictitious account, parties and symbol). Each line starts with the time the engine wrote it, then the message:
20261105-14:32:03.030: 8=FIX.4.4|9=178|35=D|34=2|49=BANZAI|52=20261105-14:32:03.030|56=EXEC|11=A|1=ACC-001|453=2|448=TRADER1|447=D|452=11|448=FIRM9|447=D|452=1|55=ESZ6|54=1|38=10|40=2|44=4500|60=20261105-14:32:03.000|10=032| 20261105-14:32:04.040: 8=FIX.4.4|9=126|35=8|34=2|49=EXEC|52=20261105-14:32:04.040|56=BANZAI|11=A|1=ACC-001|37=O1|17=E1|150=0|39=0|55=ESZ6|54=1|38=10|14=0|151=10|6=0|10=049|
BodyLength and CheckSum
BodyLength (9) counts every byte from the field after 9= up to and including the SOH just before 10=. CheckSum (10) is the sum of every byte of the message up to and including that same SOH, modulo 256, written with three digits (7 is written 007).
If either is wrong, a FIX engine refuses or ignores the message. It happens when a log was edited by hand, when the separators were changed from SOH to | before the sum was computed again, or when a value was replaced to hide an account. In this log the first message has a BodyLength that does not match, the second a CheckSum:
8=FIX.4.4|9=44|35=0|34=3|49=X|52=20261105-10:00:00|56=Y|10=171| 8=FIX.4.4|9=41|35=0|34=4|49=X|52=20261105-10:00:00|56=Y|10=176|
The extension still decodes both and writes “BodyLength (9) is 44, expected 41” and “CheckSum (10) is 176, expected 169” in the message detail.
Common mistakes when reading a FIX message
- Reading 39 (OrdStatus) and 150 (ExecType) as the same thing: 150 says what this report is about, 39 the state of the order after it. A fill on a replaced order can have 150=F and 39=1.
- Looking for an order by its ClOrdID only: after a replace, the order carries the new ClOrdID; follow OrigClOrdID (41) back to the first one.
- Using the wrong dictionary: FIX 4.2 and FIX 4.4 do not name every tag and value the same way, and user-defined tags (5000 to 9999) need the venue's own dictionary.
- Counting BodyLength with | instead of SOH: the count is the same, but the CheckSum is not.
Frequently asked questions
What does 35=D mean in a FIX message?
Tag 35 is MsgType and D is NewOrderSingle, a new order. The answer to it is an ExecutionReport (35=8), or a Reject (35=3) if the message itself could not be accepted.
Why do FIX logs show | or ^A instead of SOH?
SOH (0x01) is not printable, so many engines and tools write it as | or ^A in logs. The extension detects SOH, | and ^A on its own, even several messages on one line.
Where can I see the name of every FIX tag?
In the FIX dictionary of the version. FIX Protocol Log Analyzer names every tag and value from the FIX 4.2, FIX 4.4 and FIX Latest dictionaries of FIX Orchestra, plus your own QuickFIX XML dictionaries.
See your own FIX messages decoded the same way
FIX Protocol Log Analyzer for VS Code decodes every message of your QuickFIX, QuickFIX/J or QuickFIX/n log, explains every reject in plain words and gives the last status of every order, on your machine. Free, no account; Pro follows each order through its replaces and cancels, details the sequence gaps and writes an anonymized copy.