FIX session
termKept in this browser · My desk
In FIX, an ordered, two-way stream of messages between two peers within one continuous series of sequence numbers starting at 1, which can outlive several successive connections.
A FIX connection is one logon, message exchange and logout over a transport connection; a session can span many. The session layer realizes level 5 of the OSI model, assumes delivery is normally fine and detects losses as gaps in sequence numbers. It was published as ISO 3531-2 in April 2022.
Lifecycle. The initiator opens the transport connection and sends a Logon (35=A), which must be the first message; the acceptor authenticates it and answers with its own Logon or a Logout. HeartBtInt(108) fixes the heartbeat interval; in silence each side sends Heartbeats (35=0), and if nothing arrives in time a TestRequest (35=1) demands a Heartbeat carrying its TestReqID. Messages are numbered in both directions in one shared space; a gap triggers a ResendRequest, and the peer answers with retransmissions marked PossDupFlag and with SequenceReset gap fills for messages it will not resend. Orderly termination is an exchange of Logouts. Identity. A session is identified by BeginString plus the initiator's and acceptor's CompIDs, and every message must carry the same SenderCompID and TargetCompID as the Logon. After a disconnect. The session layer leaves the fate of open orders to the application; venues define it. B3 cancels all open orders on involuntary disconnection of a FIX EntryPoint session when configured; NYSE's Pillar gateway continues the application sequence on its secondary address but cancels open orders and restarts at 1 on a disaster-recovery switch.
Also known as: fix session layer, fix session protocol, fix connection, iso 3531-2, sessão fix, camada de sessão fix
Sources
- FIX Session Layer technical standard, November 2020, scope and sections 4, 4.1, 4.3, 4.5, 4.6 (read 2026-11-15): OSI level 5; a bidirectional ordered stream within one sequence series from 1, across sequential connections; optimistic model; Logon first; heartbeat and test request; logout; application impact of a disconnect left undefined
- ISO, ISO 3531-2:2022, FIX session layer, April 2022, ISO/TC 68/SC 9 (read 2026-11-15 through a fetch tool): normative specification of the FIX session layer and its session profiles
- FIX 2.7a specification, 1995 (read 2026-11-15): FIX defined at two levels; session level concerned with delivery; optimistic model with gaps found by sequence numbers
- B3, EntryPoint FIX Order Entry (read 2026-11-15): FIX 4.4; involuntary disconnection of a FIX EntryPoint session cancels all open orders, configurable per session
- NYSE Pillar Gateway FIX protocol specification, version 6.0, 14 August 2026 (read 2026-11-15): FIX.4.2; failover to the secondary address continues the application-message sequence; DR switch cancels open orders and restarts sequence numbers at 1