Skip to content

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_on back to:
  • assigned if slot is still enabled and licensed
  • disabled if slot is not currently usable
  • last_logout_at is updated

Notes

  • always prefer Logout over abrupt TCP disconnects
  • Logout is 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