ZagTrader

FIX Protocol Tag 32: LastQty

Written and maintained by ZagTrader. Last reviewed . How this page is sourced and checked

Quantity of the last fill.

Tag number
32
Data type
QTY
FIX versions
FIX 4.0 to 5.0 SP2
Used in
11 message types

Earlier name: LastShares

Practical notes on LastQty

LastQty is the quantity of the last fill on an execution report.

  • CumQty (14) is the sum of all LastQty values of the order, and LeavesQty (151) is what is still open.
  • For a live order, CumQty plus LeavesQty equals OrderQty (38).

Common mistakes

  • Adding the fills of resent reports (PossDupFlag 43 = Y) twice. Check ExecID (17) before adding a fill.

Changes between FIX versions

  • The field is called LastShares in FIX 4.0 to 4.2 and LastQty from FIX 4.3.
  • The data type is INT in FIX 4.0 and 4.1 and QTY from FIX 4.2.

See also:How to read an Execution ReportPossDupFlag and PossResend

Tag 32 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

32=200

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 32

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.