DayOfMonth
DayOfMonth is a FIX datatype defined in FIX 4.2, carried on the wire as int. 2 fields use it.
Wire format
- Base type
- int
- Derived from
- int
- Fields
- 2
A day number within a month, 1–31.
What the specification says
int field representing a day during a particular month (values 1 to 31).
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-int when it does not lex as one; the raw string is kept either way.
Derivation
The FIX 4.2 dictionary records a derivation tree, so DayOfMonth is declared as deriving from int. 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 |
|---|---|---|---|
| 205 | MaturityDay | FIX 4.2 | 26 |
| 314 | UnderlyingMaturityDay | FIX 4.2 | 4 |
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