Logout Message Fields

A Logout message is usually sent in response to a Logout Request message. Any queued data is transmitted, a Logout message is sent, and Cboe will close the connection. However, a Logout message may also be sent if the Member violates the protocol specification (e.g., by moving backwards in sequence number).

The Logout message contains the last transmitted sequence number for each unit, allowing the Member to check that their last received sequence number matches.

Table 1. Logout Message Fields
FieldOffsetLengthData TypeDescription
StartOfMessage02BinaryMust be 0xBA 0xBA.
MessageLength22BinaryNumber of bytes for the message, including this field but not including the two bytes for the StartOfMessage field.
MessageType41Binary0x08
MatchingUnit51BinaryAlways 0 for session level messages.
SequenceNumber64BinaryAlways 0 for session level messages.
LogoutReason101Alphanumeric
  • The reason why the Logout message was sent.
  • U=User Requested
  • E=End of Day
  • A=Administrative
  • !=Protocol Violation
LogoutReasonText1160TextHuman-readable text with additional information about the reason for logout. Particularly useful if LogoutReason = ! (Protocol Violation).
LastReceived SequenceNumber714BinaryLast inbound (Member to Cboe) message sequence number processed by Cboe.
NumberOfUnits751BinaryA number, n (possibly 0), of unit/sequence pairs to follow, one per unit from which the client has received messages.
UnitNumber 11BinaryA unit number.
UnitSequence14BinaryHighest available sequence number for the unit.
UnitNumber n1BinaryA unit number.
UnitSequencen4BinaryHighest available sequence number for the unit.
Table 2. Logout Response Message Example
Field NameHexadecimalNotes
StartOfMessageBA BAStart of message bytes.
MessageLength55 0085 bytes
MessageType08Logout
MatchingUnit00Always 0 for session level messages
SequenceNumber00 00 00 00Always 0 for session level messages
LogoutReason55 U = User Requested
LogoutReasonText55 73 65 72 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00User
LastReceived54 5A 02 00Last Cboe received sequence of 150,100
SequenceNumber
NumberOfUnits03Two unit/sequence pairs to follow;
UnitNumber101Unit 1
UnitSequence14A BB 01 00Last sent sequence of 113,482
UnitNumber202Unit 2
UnitSequence200 00 00 00Last sent sequence of 0
UnitNumber304Unit 2
UnitSequence379 A1 00 00Last sent sequence of 41,337
Cboe Titanium U.S. Equities BOE Specification - Logout Message Fields | Cboe