fixparser-common
v9.4.0
Published
FIXParser shared codebase
Readme
fixparser-common
Shared TypeScript interfaces, types, and utilities for the FIXParser ecosystem.
What is fixparser-common?
fixparser-common provides foundational building blocks for FIXParser and its plugins, including:
- Message storage interfaces and buffers for handling FIX messages
- Logging interfaces and types for consistent, pluggable logging
- Plugin interface for extensibility
- UUID generation utility
- Common types for messages and log levels
This package is not a standalone FIX engine, but is intended for use by FIXParser, its plugins, and related tools.
Main Exports
IMessageStore<T>: Interface for generic message storage (add, retrieve, update, remove, etc.)MessageBuffer<T>: In-memory buffer implementingIMessageStore<T>ILogTransporter: Interface for pluggable log transport (e.g., to file, console, remote)LogMessage,Level: Types for structured loggingIPlugin<T>: Interface for registering pluginsIMessage: Interface for FIX messagesuuidv4: Utility for generating UUID v4 strings
Example Usage
import { MessageBuffer, LogMessage, Level, uuidv4 } from 'fixparser-common';
// Message buffer for storing messages
const buffer = new MessageBuffer(100);
buffer.add({ messageSequence: 1, encode: () => 'FIX message' });
// Logging
const log: LogMessage = { level: 'info' as Level, message: 'Started FIX session' };
// Generate a UUID
const id = uuidv4();License
Copyright © 2025 FIXParser Ltd. Released under Commercial license. Check LICENSE.md.
