ZagTrader

FIX Protocol Tag 38: OrderQty

Quantity ordered: the number of shares for equities, or the par, face or nominal value for fixed income.

Tag number
38
Data type
QTY
FIX versions
FIX 4.0 to 5.0 SP2
Used in
31 message types

Practical notes on OrderQty

OrderQty is the quantity to buy or sell, in shares, contracts or units of the instrument.

  • It is a decimal type, so fractional quantities are allowed where the market supports them.
  • In FIX 4.4 it sits in the OrderQtyData component, which also offers CashOrderQty (152) for orders given as an amount of money and OrderPercent (516).
  • On a Cancel/Replace it is the new total quantity of the order, including what has already filled, not the quantity left.

Common mistakes

  • Sending the remaining quantity on a replace, which shrinks the order by the filled amount a second time.
  • Quantities that are not a multiple of the lot size: OrdRejReason 13 (Incorrect quantity) on FIX 4.4.

Tag 38 in each FIX version

Values and message usage as defined in a specific version.

Data type

QTY: A decimal number of units, such as shares or contracts.

Example

38=1000

Illustrative value. In a message, fields are separated by the SOH character (0x01), often shown as | or ^ in logs.

Decode a message with this tag

Message types that use tag 38

Covers every version from FIX 4.0 to 5.0 SP2, including fields reached through components and repeating groups. The version pages above show whether the tag is required in each message.

Field and message data comes from the QuickFIX data dictionaries for FIX 4.0 to 5.0 SP2 and FIXT 1.1, used under the QuickFIX Software License. This product includes software developed by quickfixengine.org (http://www.quickfixengine.org/). Enumerated value names are converted to plain text for reading.