ZagTrader

FIX Protocol Tag 31: LastPx

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

Price of the last fill.

Tag number
31
Data type
PRICE
FIX versions
FIX 4.0 to 5.0 SP2
Used in
14 message types

Practical notes on LastPx

LastPx is the price of the last fill on an execution report.

  • AvgPx (6) is the average price over all fills so far; LastPx is only this fill.
  • For FX, LastPx is the all-in rate: LastSpotRate (194) plus LastForwardPoints (195).
  • On reports that carry no fill, such as a new or canceled order, it is 0 or absent.

Common mistakes

  • Booking a fill from a duplicate report. Check ExecID (17) before adding a fill.

Changes between FIX versions

  • The data type is FLOAT in FIX 4.0 and 4.1 and PRICE from FIX 4.2.

See also:How to read an Execution Report

Tag 31 in each FIX version

Values and message usage as defined in a specific version.

Data type

PRICE: A decimal number giving a price.

Example

31=187.20

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 31

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.