Skip to main content
The FIX API uses FIX 4.2 over TCP/IP. Each FIX message contains a standard header, a message body, and a standard trailer. Fields use the tag=value<SOH> format, where <SOH> is ASCII 0x01.

Standard header

Standard trailer

Sequence numbers

Each side maintains its own outbound sequence number. MsgSeqNum (34) starts at 1 for a reset session and increments by 1 for every session and application message sent in that direction. If a sequence gap is detected, the receiving side requests retransmission with ResendRequest (35=2). If a sequence number is lower than expected and is not a permitted duplicate, the service rejects the session state and requires a corrected logon.

Logon and reconnect behavior

Heartbeat rules

Resend and gap fill

Endpoint failover

Primary and secondary endpoints do not share FIX session state. Use the secondary endpoint only when the primary endpoint cannot be reconnected after 30 seconds and the switch is authorized for the session.

Logout

To close a FIX session, the initiating side sends Logout (35=5). The receiving side replies with Logout (35=5), then the TCP connection closes.