FIX Doctorsupport@fixdoctor.tech
FIX Knowledge Base

FIX Error: Missing OrderQty (38) – Explained

Tag 38 (OrderQty) specifies the total quantity of shares, contracts, or units to be traded. This field is mandatory for NewOrderSingle (35=D) and OrderCancelReplaceRequest (35=G) messages.

Root Cause

1) Quantity not captured from order entry, 2) Message builder omits OrderQty, 3) Quantity validation fails leaving field empty, 4) Zero quantity filtered out incorrectly.

Broker/Exchange Action

Broker rejects with RefTagID=38, SessionRejectReason=6. Order is not accepted.

Client/Your Action

1) Ensure OrderQty is captured and validated, 2) Set OrderQty to positive integer, 3) Check quantity is within broker limits, 4) Verify field is not filtered out.

Example FIX Message

8=FIX.4.4|9=100|35=D|49=CLIENT|56=EXCHANGE|11=ORDER123|55=AAPL|54=1|40=2|44=150.00|10=123|

How FIX Doctor Detects This

FIX Doctor checks NewOrderSingle and OrderCancelReplaceRequest messages for tag 38. Missing OrderQty triggers an error.

Related Errors

Analyze Your FIX Logs

Upload or paste your FIX logs to automatically detect this error and get detailed diagnostics.

Analyze FIX Logs