Differences
This shows you the differences between two versions of the page.
developers:fixapi:logon [2025/09/12 01:09] – created chad | developers:fixapi:logon [2025/09/12 02:20] (current) – chad | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Logon ==== | + | ====== LOGON [35=A] ====== |
- | If at anytime you require assistance from CTS you must send in your FIX messages to [email protected]. | + | The Logon message initiates |
- | Our API support will not answer if the messages aren't delimited in a reasonable way for readability. | + | |
- | ===== Session Initiation | + | ===== Authentication |
+ | **Required credentials: | ||
+ | ^ Tag ^ Field ^ Description ^ | ||
+ | | 49 | SenderCompID | T4 Application Name (use " | ||
+ | | 56 | TargetCompID | T4 Firm Name | | ||
+ | | 553 | UserName | T4 User | | ||
+ | | 554 | Password | T4 Password | | ||
+ | | 91 | SecureData | License Code (use 112A04B0-5AAF-42F4-994E-FA7CB959C60B for T4Example) | | ||
+ | | 90 | SecureDataLen | Length of license code | | ||
- | After a successful SSL connection, the T4 FIX API basic requirement is to have both the Initiator and Acceptor start with sequence number 1. The client will initiate the FIX Session | + | ===== Session |
+ | ^ Value ^ Function ^ | ||
+ | | d | Disable AutoPortfolio refresh | | ||
+ | | BB | Disable auto account subscription | | ||
+ | | c | Enable security definitions | | ||
+ | | 8 | Enable pending execution reports | | ||
+ | | D | Enable decimal pricing (required for 8-decimal instruments) | | ||
+ | | BA | Drop copy mode (reporting only) | | ||
+ | | BG | Dynamic account notifications | | ||
+ | | CB | Disable user notifications | | ||
+ | | V | Chart data requests | | ||
+ | | UCG | Multi-Trader mode | | ||
- | Drop of a physical connection will result in the end of a FIX Session. Upon reconnection, | + | ===== Message Specification ===== |
- | ===== Authentication Requirements ===== | + | **Message Direction: |
- | After a successful physical connection to the T4 FIX API server, authenticated access is achieved with the following | + | ^ Tag ^ Field Name ^ Type ^ Req'd ^ Description ^ |
+ | | | **Message Header** | | Y | MsgType = A | | ||
+ | | 91 | SecureData | String | Y | Application license code | | ||
+ | | 90 | SecureDataLen | Int | Y | License code length | | ||
+ | | 98 | EncryptMethod | Int | Y | Always 0 (none) | | ||
+ | | 108 | HeartBtInt | Int | Y | Heartbeat interval (30 seconds) | | ||
+ | | 553 | UserName | String | Y | T4 User | | ||
+ | | 554 | Password | String | Y | T4 Password | | ||
+ | | 925 | NewPassword | String | O | Change password | | ||
+ | | 1408 | DefaultCstmApplVerID | String | O | API version | | ||
+ | | 1407 | DefaultApplExtID | String | O | Application fingerprint | | ||
+ | | 384 | NoMsgTypes | Int | O | Number of RefMsgTypes | | ||
+ | | →372 | RefMsgType | String | C | Session properties (see table) | | ||
+ | | | **Message Trailer** | | Y | | | ||
- | ^ Tag Name ^ Tag Number | + | ===== Sample |
- | | TargetCompId | + | |
- | | UserName | + | |
- | | Password | + | |
- | | SenderCompId | + | |
- | | SecureData | + | |
- | | SecureDataLen | + | |
- | + | ||
- | Failure to provide the correct parameters in the Logon message will result in a logon failure. Appropriately, | + | |
- | + | ||
- | ===== Setting FIX Session Properties upon Logon ===== | + | |
- | + | ||
- | The T4 FIX API provides enhanced control of FIX Session functionalities. Upon successful authentication, | + | |
- | + | ||
- | ===== Default Logon Properties ===== | + | |
- | + | ||
- | A successful FIX Session is acknowledged with the expected (echo) Logon message. In addition, if no RefMsgTypes (Tag 372) are specified in the Logon request, the T4 FIX API will automatically return the account portfolio (as Execution Reports) and account details (as Collateral Reports). To disable automatic portfolio/ | + | |
- | + | ||
- | ===== User Configuration ===== | + | |
- | + | ||
- | For a successful Login, the T4 FIX API requires the Logon User to have previously assigned accounts and exchanges. Before FIX API usage, the user is required to complete Market Data Requirements through its Firm setup page. Lack of proper configuration will result in a FIX Logout - indicating the lack of account or exchange assignment for the violating User. This requirement is not applied for Chart data logins (Tag 372=V). | + | |
- | + | ||
- | ===== Message Dictionary ===== | + | |
- | + | ||
- | ^ Tag ^ Field Name ^ Req' | + | |
- | | (Standard Header) | Y | MsgType = A | | + | |
- | | 91 | SecureData | + | |
- | | 90 | SecureDataLen | + | |
- | | 49 | SenderCompID | + | |
- | | 56 | TargetCompID | + | |
- | | (Body) | | + | |
- | | 98 | EncryptMethod | + | |
- | | 108 | HeartBtInt | + | |
- | | 553 | UserName | + | |
- | | 554 | Password | + | |
- | | 925 | NewPassword | + | |
- | | 1408 | DefaultCstmApplVerID | N | The application version for this FIX API release. Version Id consists of 4 octets: Major Version, Minor Version, Build Number, Revision. | | + | |
- | | 1407 | DefaultApplExtID | + | |
- | + | ||
- | ===== Start Repeating Group ===== | + | |
- | + | ||
- | ^ Tag ^ Name ^ Req'd ^ Description | + | |
- | | 384 | NoMsgTypes | + | |
- | | 372 | RefMsgType | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | + | ||
- | ===== End Repeating Group ===== | + | |
- | + | ||
- | (Standard Trailer) - Y | + | |
- | + | ||
- | ===== Sample ===== | + | |
- | + | ||
- | In this example, the T4 FIX API client requests the start of a FIX Session. The client disables portfolio lists (Tag 372=d). Subsequently, | + | |
- | + | ||
- | ==== Login Request from T4 FIX API Client | + | |
+ | **Logon Request:** | ||
< | < | ||
- | 6/ | + | 8=FIX.4.2|9=200|35=A|49=T4Example|56=T4|52=20130607-14: |
+ | 91=112A04B0-5AAF-42F4-994E-FA7CB959C60B|90=36|98=0|108=30| | ||
+ | 553=username|554=password|384=2|372=d|372=D|10=123| | ||
</ | </ | ||
+ | **Logon Response:** | ||
< | < | ||
- | [FIXLOGIN] | + | 8=FIX.4.2|9=150|35=A|49=T4|56=T4Example|50=T4FIX|52=20130607-14: |
- | [MsgSeqNum] 34 = 1 | + | 98=0|108=30|553=username|554=***|1408=4.1.1.1|10=234| |
- | [SenderCompID] | + | |
- | [TargetCompID] | + | |
- | [SendingTime] | + | |
- | [SecureData] 91 = 112A04B0-5AAF-42F4-994E-FA7CB959C60B | + | |
- | [SecureDataLen] 90 = 36 | + | |
- | [EncryptMethod] | + | |
- | [HeartBtInt] | + | |
- | [UserName] | + | |
- | [Password] | + | |
- | [NoMsgTypes] 384 = 2 | + | |
- | [RefMsgType] 372 = d (DISABLE_PORTFOLIO_LISTING) | + | |
- | [RefMsgType] 372 = D (DECIMAL PRICING) | + | |
</ | </ | ||
- | ==== Successful Login Response from T4 FIX API ==== | + | ===== Notes ===== |
- | + | * Session must start with sequence number | |
- | < | + | |
- | 6/7/2013 9:47:24 AM [fixlogin] 34=1|49=T4|56=T4Example|50=T4FIX|52=20130607-14: | + | |
- | </ | + | |
- | + | * Failed authentication returns Logout with error description | |
- | < | + | |
- | [FIXLOGIN] | + | |
- | [MsgSeqNum] 34 = 1 | + | |
- | [SenderCompID] 49 = T4 | + | |
- | [TargetCompID] 56 = T4Example | + | |
- | [SenderSubID] 50 = T4FIX | + | |
- | [SendingTime] 52 = 20130607-14:47: | + | |
- | [EncryptMethod] 98 = 0 | + | |
- | [HeartBtInt] 108 = 30 | + | |
- | [UserName] 553 = username | + | |
- | [Password] 554 = *** | + | |
- | [DefaultCstmApplVerID] 1408 = 4.1.1.1 | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | [[developers: | + | |
- | + | ||
- | + |