Qty

base: floatFIX 4.4FIX 4.2

Qty is a FIX datatype defined in FIX 4.4 and FIX 4.2, carried on the wire as float. 36 fields use it.

Wire format

Base type
float
Fields
36

A decimal quantity. Fractional quantities are legal, which is why this is a float family rather than an integer.

What the specification says

FIX 4.4

float field capable of storing either a whole number (no decimal places) of "shares" (securities denominated in whole units) or a decimal value containing decimal places for non-share quantity asset classes (securities denominated in fractional units).

FIX 4.2

float field (see definition of "float" above) capable of storing either a whole number (no decimal places) of "shares" or a decimal value containing decimal places for non-share quantity asset classes.

Descriptions are quoted from the FIX Orchestra sources under the Apache 2.0 licence.

How @boarteam/fix handles it

@boarteam/fix parses the value as a number and reports parse/invalid-float when it does not lex as one; the raw string is kept so precision and trailing zeros are never lost.

Fields with this datatype

TagFieldDialectsMessages
14CumQtyFIX 4.4, FIX 4.22
32LastQtyFIX 4.4, FIX 4.25
38OrderQtyFIX 4.4, FIX 4.222
53QuantityFIX 4.4, FIX 4.29
80AllocQtyFIX 4.4, FIX 4.212
84CxlQtyFIX 4.4, FIX 4.21
110MinQtyFIX 4.4, FIX 4.210
111MaxFloorFIX 4.4, FIX 4.28
134BidSizeFIX 4.4, FIX 4.25
135OfferSizeFIX 4.4, FIX 4.25
151LeavesQtyFIX 4.4, FIX 4.22
152CashOrderQtyFIX 4.4, FIX 4.218
192OrderQty2FIX 4.4, FIX 4.211
210MaxShowFIX 4.4, FIX 4.28
271MDEntrySizeFIX 4.4, FIX 4.22
293DefBidSizeFIX 4.4, FIX 4.21
294DefOfferSizeFIX 4.4, FIX 4.21
330BuyVolumeFIX 4.4, FIX 4.21
331SellVolumeFIX 4.4, FIX 4.21
387TotalVolumeTradedFIX 4.4, FIX 4.21
424DayOrderQtyFIX 4.4, FIX 4.21
425DayCumQtyFIX 4.4, FIX 4.21
437ContraTradeQtyFIX 4.4, FIX 4.21
561RoundLotFIX 4.42
562MinTradeVolFIX 4.42
647MinBidSizeFIX 4.43
648MinOfferSizeFIX 4.43
652UnderlyingLastQtyFIX 4.41
673LegAllocQtyFIX 4.42
687LegQtyFIX 4.410
704LongQtyFIX 4.44
705ShortQtyFIX 4.44
745AssignmentUnitFIX 4.41
800OrderBookingQtyFIX 4.44
863OrderCapacityQtyFIX 4.41
879UnderlyingQtyFIX 4.459

Decode this in your own code

The same engine that produced the decoded example above is an Apache-2.0 npm package with zero runtime dependencies. It runs in Node and in the browser, and parse() returns problems as data instead of throwing.

npm i @boarteam/fix @boarteam/fix-dict-fix44