@boarteam/fix-dict-fix44
v4.1.0
Published
FIX 4.4 dictionary as data (fields, components, messages, datatypes, enums) for @boarteam/fix. Generated from the FIX 4.4 specification.
Readme
@boarteam/fix-dict-fix44
The complete FIX 4.4 dictionary as data (912 fields / 93 messages / 105 components / 23
datatypes) for the @boarteam/fix engine.
Generated directly from the QuickFIX FIX44.xml data dictionary — never hand-maintained.
📖 Documentation · 📚 Browse FIX 4.4 · ▶️ Playground · 💻 GitHub
Stable and actively developed. See the project README for coverage and declared coverage gaps.
import { createFixEngine } from '@boarteam/fix';
import { dictionary, Tags, MsgType } from '@boarteam/fix-dict-fix44';
const fix = createFixEngine(dictionary);
const wire = fix.encode({ msgType: MsgType.NewOrderSingle, fields: { [Tags.ClOrdID]: 'A1' } });Or build the same message with the typed message factory — statically typed to each
message's fields/groups, rendering byte-identical to encode:
import { message, MsgType } from '@boarteam/fix-dict-fix44';
const wire = message(MsgType.NewOrderSingle)
.set('ClOrdID', 'A1')
.set('Side', '1') // typed to the Side value union
.render({
SenderCompID: 'ME',
TargetCompID: 'YOU',
MsgSeqNum: 1,
SendingTime: '20260716-12:00:00',
});Exports: dictionary (the data), Tags (field name → tag), TagNames (tag → field
name), MsgType (message name → MsgType value), MsgTypeNames (MsgType value →
message name), Enums (field name → spec value name → wire string, e.g.
Enums.MDEntryType.BID === '0'), a top-level const per enumerated field (Side,
OrdType, MDEntryType, ...), and DICTIONARY_VERSION. MsgType and every
per-field const are also same-name types — unions of their wire values — so
msgType: MsgType and side: Side work in type positions. The one enumerated
field without a top-level const is MsgType (tag 35), whose name belongs to the
message-type map: use Enums.MsgType.
For the typed encode side it also exports message (a factory bound to this dictionary),
MessageBodies (the MsgType value → body-type registry), and a named body type per message
(NewOrderSingleBody, MarketDataSnapshotFullRefreshBody, …) plus augmentable per-container
group/component interfaces (SecListGrp_NoRelatedSymEntry, InstrumentFields, …) that venue
extensions patch via declaration merging. It also exports a narrowing pair per direction, both
keyed on the MsgType value: isMessageType + MessageOf<M> for a message you built (they
narrow a MessageView<any> of unknown type to a specific message's body, so get() becomes
typed), and isInboundType + InboundOf<M> for one you received — same narrowing over an
InboundMessage, with the session envelope and the original parsed still reachable
afterwards. Narrowing to every message at once is inboundKnownGuard, which takes the
dictionary at runtime and so is bound by the consumer — an app that extends this dictionary must
bind its own rather than borrow one bound to the stock one.
The typed-message API is documented in full in the
Typed messages guide.
Requires @boarteam/fix as a peer dependency.
License
Apache-2.0 © Boar Team. See NOTICE. The dictionary data is derived
from the publicly published FIX 4.4 specification. "FIX" is a trademark of FIX Protocol
Limited; this is an independent project, not affiliated with or endorsed by it.
