Beyond order routing, the T4 FIX API provides additional functionalities to query and manage positions, orders and accounts. The Collateral Inquiry message (MsgTyp=BB) is the cornerstone of (non-routing) application management. If the requests are successful, Collateral Inquiries result in responses from the T4 FIX API server with Execution Reports, Collateral Reports, or Security Definitions.
Driven by its Subscription Request Type (Tag 263), the Collateral Inquiry can provide the following functionalities:
After FIX logon success, the CTS API system requires subscription to user accounts before any orders can be placed. This is a key requirement without which no order would be accepted during the FIX Session.
By default, all user accounts are automatically subscribed to upon a successful login. If only a subset of user accounts is required for trading, Automatic Account Subscription can optionally be turned off with the Logon message (Tag 372=BB). Subsequently, account subscriptions must be explicitly requested with the Collateral Inquiry message.
To retrieve a list of accounts:
To subscribe to accounts:
Response includes:
To suppress verbose responses:
Note: Subscriptions are by Account ID (Tag 448), not Account Name.
To refresh data (e.g., to receive new Execution Reports), unsubscribe and re-subscribe.
To unsubscribe:
Note: No response is returned.
To list a specific order’s history:
Returns multiple Execution Reports for all order lifecycle events (risk approval, exchange submission, acceptance, etc.).
To get an account’s portfolio snapshot:
Returns Execution Reports for all orders:
Differentiation:
To retrieve trader info:
Multiple Collateral Reports returned in multi-trader mode (Logon with RefMsgType = UCG). Master User info is returned even without multi-trader mode.
Reports (Tag 854 = 8) may include:
Tag | Field Name | Req'd | Comments |
---|---|---|---|
*Standard Header* | Y | MsgType = BB | |
909 | CollInquiryID | Y | Unique identifier for this inquiry |
263 | SubscriptionRequestType | Y | 0 = SnapShot 1 = Snapshot Plus Updates 2 = Disable Previous Snapshot Plus Updates |
725 | ResponseTransportType | N | 0 = In Band (default) 1 = Out of Band |
1 | Account | N | Customer Account |
581 | AccountType | N | Type of Customer Account |
Tag | Field Name | Req'd | Comments |
---|---|---|---|
453 | NoPartyIDs | N | Number of PartyID entries |
448 | PartyID | Y | Value depends on Party Role |
452 | PartyRole | N | 22 = User Exchanges 24 = Customer Account 3 = Order ID |
Tag | Field Name | Req'd | Comments |
---|---|---|---|
938 | NoCollInquiryQualifier | N | Number of qualifiers |
896 | CollInquiryQualifier | Y | 0 = Customer Accounts 1 = Customer Exchanges 3 = Order History 4 = Account Orders - All 5 = Account Orders - Working 6 = Account Orders - Canceled 7 = Account Orders - Filled 8 = Rejected 9 = Suspended 11 = Fills 12 = Overnights 13 = User/Trader Information |
58 | Text | N | Free-form text |
*Standard Trailer* | Y |