Search code examples
quickfixfix-protocol

Initator and acceptor logout order in Quickfix


When I have a FIX session between acceptor and initiator which side in general should be sending logout message first?

Also, is it fine to set session times on acceptor and initiator side to the same hours? Or maybe initiator should be configured for the shorter period to keep the communication safe and clear from errors?


Solution

  • Based on real project experience,

    • The connection was post trade feed, where our post trade gateways used to connect with ECN (Electronic communication networks) like Bloomberg, Tradeweb etc.
    • The ECN used to act as Acceptor and our gateways used to act as initiator.
    • As initiator, its our gateways responsibility to initiate the connection with ECN by sending LOGON message.
    • The gateways used to send LOGON and LOGOUT half an hour before/After the markets open & closes respectively.

    But in case there is some problem/error, even ECN used to send a LOGOUT message.

    So, there is no hard and fast rule, who should send LOGOUT message.