← Technical Guides

Reconcile an ExecutionReport to its order

Use ExecType, OrdStatus and the quantity fields to follow a synthetic fill, identify retransmissions and distinguish FIX 4.2 from 4.4.

An ExecutionReport (35=8) can acknowledge an order, report a trade, report a status or communicate a rejection. ExecType (150) identifies the reason for this report. OrdStatus (39) records the order’s state after the event, subject to FIX order-state precedence. A fill can arrive while a cancellation is pending, so those two fields can describe different aspects of the same order. FIX application layer, trade

Follow a partial fill

This complete synthetic FIX 4.4 report concerns an order for 100 units of LABX. Each bar represents SOH.

8=FIX.4.4|9=161|35=8|49=LAB_B|56=LAB_A|34=75|52=20260115-09:32:00|37=V-62|11=C-62|17=E-1|150=F|39=1|55=LABX|54=1|38=100|32=40|31=25.00|151=60|14=40|6=25.00|60=20260115-09:31:59|10=219|

The venue’s OrderID is V-62. The client supplied C-62 in ClOrdID. ExecID E-1 identifies the report in the venue’s execution identifier scheme. Here 150=F announces a trade and 39=1 says the order is partially filled. LastQty (32) and LastPx (31) give 40 units at 25.00. CumQty (14) is now 40 and LeavesQty (151) is 60.

A second fill of 60 at 25.50 would give CumQty 100 and a quantity-weighted AvgPx of (40 × 25.00 + 60 × 25.50) / 100 = 25.30. With the order filled, LeavesQty is zero. If instead the venue cancels the remaining 60, LeavesQty can also become zero while CumQty stays at 40. An arithmetic test that always demands OrderQty = CumQty + LeavesQty would misclassify that canceled order. FIX 4.4 ExecutionReport

Count each execution once

Inspect the session, the sender’s identifier scope and ExecID before applying an apparent second fill. A retransmitted report may carry a newer SendingTime and the same execution. A trade correction (150=G) or trade cancel (150=H) instead references an earlier execution through ExecRefID (19). Reconcile the referenced event and the latest reported totals. Tracing resend requests

For FIX 4.2, read ExecTransType (20) as well. Its ExecutionReport layout requires that field, and the legacy ExecType values 1 and 2 represent partial fill and fill. A FIX 4.4 parser that recognises only 150=F as a trade can miss fills in a 4.2 archive. FIX 4.2 ExecutionReport layout, FIX 4.2 specification