Skip to main content
Logout(5) can be sent by either party in order to terminate a session. The sending party should always wait for the echo of the logout request before they close the socket. Closing connections in any other way is considered abnormal behavior. Nonetheless, if CancelOnDisconnect(9001) was set at Logon, all orders will be cancelled at Logout.

Arguments

TagNameTypeRequiredComments
58textStringNoFree format text string specifying the logout reason. This is ignored by the server
9003DontCancelOnDisconnectBooleanNoIf Y then it disables CancelOnDisconnect for this connection even if CancelOnDisconnect was enabled in Logon(A) or account settings. Default - false(N), no changes for CancelOnDisconnect flag