> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kraken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logout

> Terminate a FIX session

<div className="api-banner">
  <span className="api-protocol fix">FIX</span>
  <span className="api-detail">session: admin</span>
  <span className="api-tag">35=5</span>
</div>

The Logout message initiates or confirms the termination of a FIX session. Disconnection without the exchange of logout messages will be interpreted as an abnormal condition.
Before actually closing the session, the logout initiator must wait for the opposite side to respond with a confirming logout message. Abnormal disconnection without logout will activate cancel-on-disconnect on the session.

***

<ResponseField name="header" type="" required>35=`5`</ResponseField>

<ResponseField name="58 - Text" type="string">
  Reason for the logout. This will be used to explain why a logon failed.
</ResponseField>

<ResponseField name="trailer" type="" required />

<CodeGroup>
  ```text Client-initiated Logout (client → server) theme={null}
  8=FIX.4.4|9=60|35=5|34=10|49=CLIENT|56=KRAKEN-TRD|52=20260407-14:32:10.000|10=137|
  ```

  ```text Server Confirms Logout (server → client) theme={null}
  8=FIX.4.4|9=59|35=5|34=8|49=KRAKEN-TRD|56=CLIENT|52=20260407-14:32:10.000|10=104|
  ```

  ```text Server-initiated Logout — Auth Failure (server → client) theme={null}
  8=FIX.4.4|9=96|35=5|34=2|49=KRAKEN-TRD|56=CLIENT|52=20260407-14:32:01.000|58=Logon failed: invalid credentials|10=129|
  ```
</CodeGroup>
