Welcome Guest, you are in: Login
CTS Futures
Session Integrity

Heartbeats provide (application-level) connectivity during a FIX session. The heartbeat message maintains the communication link when transactional messages (e.g. trading order routing message) are not received. Under normal conditions, the client and T4 FIX API server will interchange heartbeats at the pre-determined periodic interval (30 seconds). Heartbeats are acknowledged by the counterparty through the generation of a subsequent "echo" heartbeat.

When no message is received within the periodic interval, a heartbeat time-out condition is encountered. Thereafter, a heartbeat is sent to the non-responding party. Upon further unresponsiveness, a Test Request message follows. The requested party must respond to the Test Request message with a Heartbeat message containing the TestRequestID (Tag 112) sourced from the Test Request message. Failure to generate a heartbeat for such test request will result in a Logout with the subsequent termination of the current FIX Session.

Please note that regardless of time-out conditions, Test Requests can be sent by either party at any time. Correspondingly, a heartbeat with a TestRequestID (Tag 112) must be responded to the initiating party.

Message Dictionary

TagField NameReq'dComments
Standard HeaderYMsgType = 0
112TestReqIDNRequired when the heartbeat is the result of a Test Request message
Standard TrailerY

Sample Messages

Normal Heartbeat:


[MsgSeqNum] 34 = 43
[SenderCompID] 49 = T4Example
[TargetCompID] 56 = T4
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-17:54:49.359

A Heartbeat as a response to a Test Request:


[MsgSeqNum] 34 = 123
[SenderCompID] 49 = T4
[TargetCompID] 56 = T4Example
[SenderSubID] 50 = TraderName
[SendingTime] 52 = 20120905-18:09:12.103
[TestReqID] 112 = treqid.09.05.2012-13.09.12

FIX API Home Page.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

111 W. Jackson Blvd., Suite 1408, Chicago, IL 60604

© 2009-2017 Cunningham Trading Systems LLC All rights reserved.