Inferensys

Glossary

FIX Protocol

The Financial Information eXchange (FIX) Protocol is a non-proprietary, open messaging standard for real-time electronic communication of securities transactions between brokers, exchanges, and institutional investors.
Accountant using AI for financial close automation, accounting software on screen, home office evening work session.
FINANCIAL INFORMATION EXCHANGE

What is FIX Protocol?

The Financial Information eXchange (FIX) Protocol is a vendor-neutral, open messaging standard for the real-time electronic communication of securities transactions between financial institutions.

The FIX Protocol is a session-layer messaging standard that defines a structured, tag-value format for encoding trade-related messages such as orders, executions, and market data. It operates over TCP/IP, establishing a persistent, bidirectional session between counterparties—typically a buy-side institution and a sell-side broker—using Logon and Logout messages to manage state. The protocol's core abstraction is the FIX Session, which enforces strict message sequencing via MsgSeqNum to guarantee ordered, once-and-only-once delivery, a critical requirement for deterministic trade execution and audit trails.

FIX decouples the business logic of trading from the transport mechanism, enabling interoperability across disparate Order Management Systems (OMS) and Execution Management Systems (EMS). Each message is composed of numeric tags (e.g., 35=MsgType, 11=ClOrdID) paired with values, allowing for extensibility through custom user-defined fields. The protocol supports multiple versions, with FIX 4.4 and FIX 5.0 SP2 being the most widely adopted, the latter introducing a transport-independent session layer (FIXT) that separates the session protocol from the application-layer message encoding, facilitating migration to binary encodings like FIX SBE (Simple Binary Encoding) for low-latency, high-frequency trading environments.

PROTOCOL ARCHITECTURE

Key Features of the FIX Protocol

The Financial Information eXchange (FIX) protocol is the foundational messaging standard for real-time electronic trading. Its architecture is built on a set of core features that ensure deterministic, high-speed, and reliable communication between market participants.

01

Session Layer Reliability

FIX operates on a dedicated session layer (Layer 5) above TCP/IP, ensuring deterministic message delivery. Each session is uniquely identified by a combination of SenderCompID and TargetCompID. The protocol uses sequence numbers on every message to detect gaps, out-of-order delivery, or duplicates. This allows for robust gap fill recovery via resend requests, guaranteeing that no trade instruction is ever lost or processed twice, which is critical for audit trails and regulatory compliance.

99.999%
Target Delivery Reliability
Seq. No.
Gap Detection Mechanism
02

Strictly Typed Tag-Value Encoding

The protocol encodes data using a tag-value pair format delimited by the ASCII SOH character (0x01). Each field is represented by a numeric tag (e.g., Tag 55 = Symbol, Tag 44 = Price). This schema is strictly defined in a machine-readable FIX Data Dictionary, which specifies data types, valid value enumerations, and field dependencies. While less human-readable than JSON, this binary-adjacent format minimizes parsing overhead and bandwidth, enabling microsecond-level processing in high-frequency trading environments.

0x01
SOH Delimiter
>2000
Defined Tags
03

Message Catalog & Workflow States

FIX defines a finite set of message types (MsgType, Tag 35) that map to specific workflow states in a trade lifecycle. These range from pre-trade (e.g., Market Data Snapshot W, Quote Request R) to trade execution (e.g., New Order Single D, Execution Report 8) and post-trade allocation (e.g., Allocation Instruction J). This finite state machine approach ensures that both counterparties maintain a synchronized view of an order's status, preventing state mismatches that could lead to erroneous executions.

MsgType
Tag 35
D, 8, F
Core Trade Msg Types
04

Transport Independence & FAST Protocol

While traditionally deployed over TCP/IP, the FIX session layer is transport-agnostic. For extreme low-latency scenarios, the FIX Adapted for STreaming (FAST) protocol compresses FIX messages using implicit tagging and field encoding, reducing bandwidth by over 90%. This is often used for high-volume market data feeds where full tag-value verbosity is prohibitive. The separation of session logic from the physical transport allows FIX to migrate seamlessly to newer networking technologies without changing the application logic.

>90%
Bandwidth Reduction (FAST)
TCP/MQ/UDP
Supported Transports
05

Bi-Directional Heartbeating

To maintain session integrity during idle periods, FIX employs a bi-directional heartbeat mechanism. Both the initiator and acceptor independently send Heartbeat messages (MsgType 0) at negotiated intervals (HeartBtInt). If a heartbeat is not received within the grace period, the session is considered lost, triggering an automatic logon recovery sequence. This proactive health-check prevents 'zombie' connections where a silent network failure could cause a trading system to miss critical execution reports.

MsgType 0
Heartbeat Message
HeartBtInt
Negotiated Interval
06

Custom User-Defined Fields

The protocol allows for proprietary extensions through User-Defined Fields (Tags 5000-9999). Brokerages and exchanges use these to transmit non-standard data without breaking the core parser. To avoid collisions, the FIX Trading Community registers these custom fields. This extensibility allows the protocol to adapt to novel asset classes like cryptocurrencies or complex derivatives without requiring a full version upgrade, bridging the gap between a rigid global standard and bespoke institutional requirements.

5000-9999
Custom Tag Range
FIX Orchestra
Machine-Readable Rules
FIX PROTOCOL ESSENTIALS

Frequently Asked Questions

Clear, technical answers to the most common questions about the Financial Information eXchange protocol, its architecture, and its role in modern electronic trading.

The Financial Information eXchange (FIX) Protocol is a non-proprietary, open-standard messaging specification designed for the real-time electronic exchange of securities transactions. It operates on a session-based, peer-to-peer model where two parties—typically a buy-side institution and a sell-side broker—establish a persistent connection identified by SenderCompID and TargetCompID. Communication occurs via a structured stream of tag-value pairs delimited by the ASCII SOH (Start of Header, \x01) character. Each message, such as a NewOrderSingle (MsgType D), contains a standardized set of fields: the instrument identifier (tag 55), side (tag 54), order quantity (tag 38), and price (tag 44). The protocol defines strict session-level recovery mechanisms using sequence numbers (tags 34 and 789) to guarantee ordered, gap-free delivery. When a connection drops, the parties perform a logon exchange (MsgType A) with ResetSeqNumFlag=Y or resend missed messages via ResendRequest (MsgType 2), ensuring no trade instruction is ever lost or duplicated.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.