developers:fixapi:testrequest

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developers:fixapi:testrequest [2025/09/12 01:10] – created chaddevelopers:fixapi:testrequest [2025/09/12 02:22] (current) chad
Line 1: Line 1:
-====== Test Request ======+====== TEST REQUEST [35=1] ======
  
 +The Test Request message forces a Heartbeat response to verify session connectivity.
  
-===== Session Integrity Check =====+===== Message Specification =====
  
-A Test Request message forces a response from the counterparty to acknowledge the continuation of FIX Session connectivity. Test requests can occur at any time during the FIX Session. When a test request is received, the party is obligated to respond to the Test Request message with a Heartbeat. Such heartbeat must also contain the **TestRequestID** (Tag 112) that originated in the Test Request message.+**Message Direction:** Bidirectional
  
-Test Request messages also provide an opportunity to check for out-of-sequence conditions. It permits checking for the expected outgoing sequence number (**Tag 34** of the Test Request) and expected incoming sequence number (**Tag 34** of the mandatory Heartbeat response). +^ Tag ^ Field Name ^ Type ^ Req'd ^ Description 
- +| **Message Header** | Y | MsgType = 1 | 
-The **TestRequestID** (Tag 112) can be text of any form. A unique string is recommended (e.g., the current time string) for pairing the Test Request with its corresponding Heartbeat. +| 112 | TestReqID | String | Y | Unique identifier for this test request 
- +| **Message Trailer** | Y | |
-===== Message Dictionary ===== +
- +
-^ Tag  ^ Field Name       ^ Req'd ^ Comments                                                                   +
-| **Standard Header**     | Y     | MsgType = 1                                                               +
-| 112                     | TestReqID | Y     Required when the heartbeat is the result of a Test Request message +
-| **Standard Trailer**    | Y                                                                                  |+
  
 ===== Sample Messages ===== ===== Sample Messages =====
  
-**Test Request generated by the client:**+**Test Request:**
 <code> <code>
-34=123|49=T4Example|56=T4|50=TraderName|52=20120905-18:09:12.103|112=treqid.09.05.2012-13.09.12|+8=FIX.4.2|9=80|35=1|49=T4Example|56=T4|50=TraderName|52=20120905-18:09:12.103| 
 +112=treqid.09.05.2012-13.09.12|10=123|
 </code> </code>
  
 +**Required Heartbeat Response:**
 <code> <code>
-[FIXTESTREQUEST] +8=FIX.4.2|9=80|35=0|49=T4|56=T4Example|50=T4FIX|52=20120905-18:09:12.119| 
-[MsgSeqNum] 34 123 +112=treqid.09.05.2012-13.09.12|10=234|
-[SenderCompID] 49 = T4Example +
-[TargetCompID] 56 = T4 +
-[SenderSubID] 50 = TraderName +
-[SendingTime] 52 = 20120905-18:09:12.103 +
-[TestReqID] 112 = treqid.09.05.2012-13.09.12+
 </code> </code>
  
-**Heartbeat response to the client's Test Request:** +===== Notes ===== 
-<code> +  * Response must be Heartbeat with matching TestReqID 
-34=72|49=T4|56=T4Example|50=T4FIX|52=20120905-18:09:12.119|112=treqid.09.05.2012-13.09.12| +  * Can be sent anytime to verify connectivity 
-</code> +  Checks sequence number synchronization 
- +  Failure to respond triggers Logout
-<code> +
-[FIXHEARTBEAT] +
-[MsgSeqNum] 34 72 +
-[SenderCompID] 49 T4 +
-[TargetCompID] 56 T4Example +
-[SenderSubID] 50 T4FIX +
-[SendingTime] 52 = 20120905-18:09:12.119 +
-[TestReqID] 112 = treqid.09.05.2012-13.09.12 +
-</code> +
- +
-**Test Request generated by the T4 FIX API Server:*+
-<code> +
-34=122|49=T4|56=T4Example|50=T4FIX|52=20120905-18:34:21.398|112=cts-20120905-18:34:21.398| +
-</code> +
- +
-<code> +
-[FIXTESTREQUEST] +
-[MsgSeqNum] 34 = 122 +
-[SenderCompID] 49 = T4 +
-[TargetCompID] 56 = T4Example +
-[SenderSubID] 50 = T4FIX +
-[SendingTime] 52 = 20120905-18:34:21.398 +
-[TestReqID] 112 = cts-20120905-18:34:21.398 +
-</code> +
- +
-**Client Heartbeat response to the T4 FIX API Server Test Request:** +
-<code> +
-34=173|49=T4Example|56=T4|52=20120905-18:34:36.436|112=cts-20120905-18:34:21.398| +
-</code> +
- +
-<code> +
-[FIXHEARTBEAT] +
-[MsgSeqNum] 34 = 173 +
-[SenderCompID] 49 = T4Example +
-[TargetCompID] 56 = T4 +
-[SendingTime] 52 = 20120905-18:34:36.436 +
-[TestReqID] 112 = cts-20120905-18:34:21.398 +
-</code> +
- +
- +
-[[developers:legacy_fix_api|T4 FIX API Home]]+
  • developers/fixapi/testrequest.1757639406.txt.gz
  • Last modified: 2025/09/12 01:10
  • by chad