FIX Doctorsupport@fixdoctor.tech
FIX Knowledge Base

FIX Tag 38OrderQty

Order Tag

OrderQty (Order Quantity) specifies the total quantity of shares, contracts, or units to be traded in an order. It is mandatory for NewOrderSingle (35=D) and OrderCancelReplaceRequest (35=G) messages.

Correct Usage

Set OrderQty to a positive integer representing the quantity to trade. Validate quantity is within broker limits (min/max order size). For replace requests, OrderQty is the new total quantity (not the change).

Common Issues

1) Missing OrderQty triggers RefTagID=38 reject, 2) Zero or negative OrderQty causes rejects, 3) OrderQty exceeds broker limits, 4) OrderQty format incorrect (non-numeric), 5) OrderQty missing from replace requests.

Example FIX Message

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

Related Tags

Analyze Your FIX Logs

Upload or paste your FIX logs to see how tag 38 is used and detect any issues.

Analyze FIX Logs