API reference

Every export of @boarteam/fix 0.5.2 — all 98 of them. Generated from the installed package's type declarations — signatures and doc text are the library's own, never paraphrased. A symbol this page misdescribes is a build failure, not a doc bug. The groups mirror the guides, so how-to and what-is stay neighbours.

By area

All exports A–Z

ExportKindSummary
BaseTypetypeThe five root FIX datatypes every other datatype derives from.
bodyLengthfunctionFIX BodyLength (tag 9): the number of bytes in the message following the BodyLength field's terminating SOH, up to and including the SOH immediately preceding the CheckSum field.
calculateChecksumfunctionFIX CheckSum (tag 10): the sum of all bytes of the message — from BeginString up to and including the SOH immediately preceding the checksum field — taken modulo 256 and rendered as a zero-padded three-digit string.
ComponentDefinterfaceA reusable component block (e.g.
ComponentExtensiontypeA component entry: { members } defines a NEW component; the other form extends an existing one (additions become visible in every referencing scope — deliberate, and reported via extend/component-fanout).
ComponentMemberinterfaceA reference to a reusable component block; the runtime expands it in place.
ConditionalContextinterfaceThe read-only view of one message a ConditionalRule reasons over.
ConditionalRuletypeA conditional ("C", required-by-prose) presence rule.
CoverageGapinterfaceA note about something the generated dictionary could not fully express, recorded for honest maturity reporting (per the open-source-readiness standard).
createFixEnginefunctionCreate a FixEngine bound to a dictionary.
createImmutableMessagefunctionCreate an ImmutableMessage for a MsgType.
createMessagefunctionCreate a MutableMessage for a MsgType, optionally seeded with a complete MessageInit (omit it to build incrementally).
DataTypeDefinterfaceA FIX datatype (e.g.
DecodedValuetypeA FIX field value after datatype coercion: When a value cannot be coerced to its declared type (e.g.
DecodeResultinterfaceThe result of coercing one wire value: the decoded value plus any diagnostics.
decodeValuefunctionCoerce one raw wire value to its typed form per the field's datatype.
DEFAULT_CONDITIONAL_RULESconstThe built-in conditional rules.
defineExtensionfunctionPin an extension declaration's literal types once — a zero-cost identity whose TS 5 const type parameter keeps every tag: 1007 / msgType: 'UP1' literal without as const, so the SAME value can drive extendDictionary (runtime) and tagsOf/msgTypesOf (types).
DictionaryclassA runtime index over a DictionaryJSON: fast lookup of fields, messages, and components, plus the derived structure the codec needs — repeating-group delimiters, component expansion, and per-message allowed-tag sets.
DictionaryExtensioninterfaceOne venue extension declaration — the single source of truth for both layers.
DictionaryJSONinterfaceThe complete, serializable dictionary.
encodefunctionEncode a message into a complete, framed FIX string: fields are emitted in the order the dictionary prescribes for the message (expanding components and repeating groups), then BeginString/BodyLength are prefixed and CheckSum appended.
EncodeMessageinterfaceThe message to encode.
EncodeOptionsinterfaceOptions for encode.
EngineOptionsinterfaceDefaults applied to every call, overridable per call.
EnumValueinterfaceOne allowed value of an enumerated field.
EnvelopeinterfaceEnvelope (header/trailer/session) fields supplied to MessageView.render at call time — the fields a Message deliberately does NOT model in its typed body: MsgSeqNum (34), SenderCompID (49), SendingTime (52), TargetCompID (56), and any other standard-header/trailer field.
extendDictionaryfunctionApply venue extension declarations to a dictionary, producing a NEW DictionaryJSON the engine consumes unchanged.
extendMsgTypesfunctionMerge venue-specific message-type entries over a base MsgType map — the string-valued mirror of extendTags.
ExtendMsgTypestypeExtendTags for MsgType maps (name → msgType strings).
ExtendResultinterfaceThe result of extendDictionary: the merged dictionary plus diagnostics.
extendTagsfunctionMerge venue-specific tag entries over a base Tags map, keeping every literal type.
ExtendTagstypeThe result of extendTags: a key-remapped merge where extension keys cleanly REPLACE base keys.
ExtensionEnumValueinterfaceOne allowed value to add to a field's enum.
ExtensionFieldDefinterfaceA new field.
FieldDefinterfaceA FIX field definition, keyed by its numeric tag in DictionaryJSON.fields.
FieldInittypeA single field/group value in init position: a group-counter value (an array of entry bodies) is accepted as a readonly array of MessageInit-widened entries; scalar values pass through unchanged, so enum unions and dialect casts are preserved.
FieldMemberinterfaceA plain field reference within a message, component, or group body.
FieldValuetypeA scalar field value the caller can supply.
FixEngineinterfaceA dictionary-bound façade over the stateless codec: parse/parseAll/encode/create with the dictionary and default options already applied.
FixIssueinterfaceA single diagnostic, returned as data — never thrown — by every analysis entry point (parse, validate, validateDictionary).
FixLayertypeWhich FIXT layer an issue belongs to, when validation ran against a transport/application dictionary pair: session findings are transport-owned (admin messages, envelope fields) and map to a session-level Reject(3); application findings map to a BusinessMessageReject(j).
FixSeveritytypeSeverity of a FixIssue.
FixtDictionariesinterfaceFIXT support: the transport/application dictionary pair.
FrameOptionsinterfaceOptions for splitMessages and scanFields.
GroupEntryinterfaceOne entry of a repeating group: its own fields and any nested groups.
GroupExtensioninterfaceMembers to add to one repeating group's entry body.
GroupMemberinterfaceA repeating group: a NumInGroup counter field (counterTag) followed by as many repetitions of members as the counter's wire value declares.
GuardWideningtypeCompile-time guard: resolves to unknown (no-op) when the extension's tag and msgType literals survived inference, and to WidenedExtensionError when they widened to number/string — which happens when the declaration was pre-typed as DictionaryExtension before the call.
ImmutableMessageinterfaceAn immutable Message — every edit returns a NEW instance (copy-on-write of the top-level body), leaving the original untouched.
invertMsgTypesfunctionBuild the msgType → name reverse of a MsgType map — the string-valued mirror of invertTags.
InvertMsgTypestypeInvertTags for MsgType maps: msgType → name with a string index.
invertTagsfunctionBuild the tag → name reverse of a Tags map, typed as InvertTags: literal lookups for known tags plus the shipped packages' widened name | undefined number index for arbitrary input.
InvertTagstypeThe result of invertTags: the precise tag → name mapped inversion (so TagNames[1007] hovers as its literal name) intersected with the widened index signature the shipped packages use (so TagNames[someNumber] is name | undefined, never a type error).
isFixtDictionariesfunctionWhether a dictionaries argument is the FIXT transport/app pair form.
KnownIssueCodetypeThe catalogue of issue codes the engine currently emits.
loadDictionaryfunctionBuild a Dictionary runtime index from its JSON form.
MemberReftypeA member of a message, component, or group body.
MemberSpectypeA member to place into a body.
mergeFixtDictionariesfunctionMerge a FIXT transport dictionary with an application dictionary into one self-contained DictionaryJSON — the runtime counterpart of the codegen merge that produces @boarteam/fix-dict-fix50sp2, exported for venue-dialect composition (mergeFixtDictionaries(fixt11, myAppLayerDialect)).
MessageCategorytypeA message's session category.
MessageDefinterfaceA FIX message definition.
MessageExtensioninterfaceA patch to an existing message (addressed by name via the record key).
messageFactoryfunctionBuild a dictionary-bound MessageFactory typed by a Bodies registry (the generated MessageBodies map of MsgType value → body type).
MessageFactoryinterfaceA dictionary-bound, typed message factory — the strongly-typed entry point the dict packages re-export (message).
MessageInittypeThe init shape for a message body B — what MessageFactory, createMessage, and the engine's create accept.
MessageOftypeThe read surface of the message whose MsgType value is M in a Bodies registry — a convenience alias for annotating a narrowed message (a function parameter, a variable).
messageTypeGuardfunctionBuild a dictionary-agnostic MessageTypeGuard bound to a Bodies registry (the generated MessageBodies map of MsgType value → body type).
MessageTypeGuardtypeA Bodies-bound message-narrowing type guard — the read-side counterpart of MessageFactory.
MessageViewinterfaceThe read surface shared by the mutable and immutable Message — enough to drive log metadata (msgType, Symbol, SecurityID, per-entry prices) and to render to wire.
msgTypesOffunctionDerive the literal name → msgType map of an extension's NEW messages, typed as MsgTypesOf.
MsgTypesOftypeThe literal name → msgType map type derived from an extension's NEW messages (entries carrying msgType); message patches are excluded.
MutableMessageinterfaceA mutable, fluent Message builder — the fast path for hot loops (per-tick market-data snapshots): set/assign mutate in place and return this for chaining, then MessageView.render converts the body once.
NewMessageSpecinterfaceA brand-new message (the presence of msgType is what marks an entry as new).
parsefunctionParse one FIX message into a structured ParsedMessage with nested repeating groups and coerced field values, returning diagnostics as data.
parseAllfunctionParse every message in a buffer of concatenated frames.
ParsedFieldinterfaceOne parsed scalar field.
ParsedGroupEntryinterfaceOne entry of a repeating group: its own fields and any nested groups, keyed by tag.
ParsedMessageinterfaceA parsed FIX message: a structured, nested view of one frame.
ParseOptionsinterfaceOptions for parse and parseAll.
ParseResultinterfaceThe result of parse: the structured message plus any diagnostics.
ReqdtypeRequired-ness of a member: Y required, N optional, C conditional (rule in prose).
ResolvedDatatypeinterfaceThe coercion-relevant facts about a datatype, resolved from its derivation chain by Dictionary.resolveDatatype.
scanFieldsfunctionTokenize a single message into ordered [tag, value] pairs with length-aware handling of data fields: when a Length field (one that some data field points to via FieldDef.lengthField) is read, the immediately following data field's value is taken as exactly that many UTF-8 bytes — even if it contains the SOH separator — so binary payloads survive intact.
SOHconstThe FIX field separator (SOH, ASCII 0x01).
splitMessagesfunctionSplit a buffer that may hold several concatenated FIX messages into one byte slice per message.
tagsOffunctionDerive the literal name → tag map from an extension declaration, typed as TagsOf.
TagsOftypeThe literal name → tag map type derived from an extension's fields record — TagsOf<typeof ctrader> is { readonly SymbolName: 1007; readonly SymbolDigits: 1008 }.
toEncodeMessagefunctionConvert a ParsedMessage back into an EncodeMessage suitable for encode, using each field's verbatim ParsedField.raw value so the round-trip preserves the exact wire content.
TokentypeA single decoded FIX field: its numeric tag and its raw, still-encoded value.
tokenizefunctionSplit a raw FIX message into ordered [tag, value] pairs.
TokenizeOptionsinterfaceOptions for tokenize.
UntypedBodytypeThe loose body type for the untyped path: any field name maps to any scalar value or, for a group counter name, an array of entry bodies.
validatefunctionValidate a parsed FIX message against a dictionary, returning diagnostics as data.
validateDictionaryfunctionStructurally validate a DictionaryJSON: every reference resolves, every field has a known datatype and a valid tag, datatype bases are real roots, group counters are real counter fields with a resolvable delimiter, enum values are unique, and the datatype derivation tree is acyclic.
ValidateOptionsinterfaceOptions for validate.
VERSIONconst@boarteam/fix — a dictionary-driven FIX protocol toolkit.
WidenedExtensionErrorinterfaceThe compile error surfaced by GuardWidening when an extension's literals were widened before reaching defineExtension.