Gemini Crypto Exchange Logo
Session-Level Messages

Establishing a connection

  1. Client sends server → Logon <A> message
  2. Is client ResetSeqNumFlag <141> set to Y?
    • Yes, reset sequence numbers and proceed:
      • Server resets the next expected client sequence number
      • Server resets its own sequence number
      • Server responds with ← Logon <A> message with reset sequence number
      • Client sends server → Heartbeat <0>
    • No, negotiate sequence numbers on both sides:
      1. Is client MsgSeqNum <34> value what the server is expecting?
      2. Is server MsgSeqNum <34> value what the client is expecting?
        • No, value is greater than expected:
        • No, value is less than expected:
          • Client disconnects or sends server → Logout <5>
          • Gemini coordinates with the client to triage so the FIX connection can be re-established
        • Otherwise:
  3. Success! Your FIX connection is established.