FIX 4.4: Logout¶
The Logout message (MsgType = 5) is used to close an active FIX
session gracefully.
In the current ScaleTrade FIX transport, clients should send Logout
when they finish the session after trading or market-data activity.
Logout Message (MsgType = 5)¶
Example¶
8=FIX.4.4|9=72|35=5|34=5|49=CLIENT_1|52=20260408-20:34:22|56=SERVER|
58=client shutdown|10=255|
Common Fields¶
| Tag | Name | Description |
|---|---|---|
| 35=5 | MsgType | Logout |
| 34 | MsgSeqNum | Outgoing sequence number |
| 49 | SenderCompID | FIX slot code, for example CLIENT_1 |
| 56 | TargetCompID | Server CompID, usually SERVER |
| 58 | Text | Optional human-readable reason |
Current Server Behaviour¶
- the session is closed by QuickFIX after normal logout exchange
- server runtime binding is removed
- FIX slot runtime state is moved from
logged_onback to: assignedif slot is still enabled and licenseddisabledif slot is not currently usablelast_logout_atis updated
Notes¶
- always prefer
Logoutover abrupt TCP disconnects Logoutis a session-level message and does not cancel open trades by itself- if the client disconnects without logout, the session can still be terminated by transport-level timeout logic