UTCDate
UTCDate is a FIX datatype defined in FIX 4.2, carried on the wire as String. 1 field uses it.
Wire format
- Base type
- String
- Derived from
- String
- Format
- YYYYMMDD
- Fields
- 1
A UTC calendar date, no time component.
What the specification says
Date represented in UTC (Universal Time Coordinated, also known as "GMT") in YYYYMMDD format. Valid values: YYYY = 0000-9999, MM = 01-12, DD = 01-31.
Descriptions are quoted from the FIX Orchestra sources under the Apache 2.0 licence.
How @boarteam/fix handles it
@boarteam/fix keeps the value as a string; format rules are checked by validate(), which reports validate/invalid-value rather than throwing.
Derivation
The FIX 4.2 dictionary records a derivation tree, so UTCDate is declared as deriving from String. The FIX 4.4 dictionary (sourced from QuickFIX) records only the base type, which is why this row appears on FIX 4.2 datatypes only.
Fields with this datatype
| Tag | Field | Dialects | Messages |
|---|---|---|---|
| 272 | MDEntryDate | FIX 4.4, FIX 4.2 | 2 |
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