Data and Trading Communications (DTC) Protocol Test Client
For a test Client for DTC Protocol Server development, use the Sierra Chart charting and trading platform.
Refer to the Test Client Instructions below.
Sierra Chart also has a full DTC Protocol Server within the Sierra Chart program. Therefore, Sierra Chart can be both used as a Test Client and Server for the DTC Protocol.
Test Client instructions
Sierra Chart is a fully compatible DTC Client. For Server developers that would like to use a test Client, Sierra Chart is available at no charge.
To use Sierra Chart as a DTC Protocol test Client, follow these instructions:
- Create a Sierra Chart account if you do not already have one.
- Download and install Sierra Chart.
- If you are developing a DTC Server for general public use, then contact [Java Script is required to view the email address. Enable Java Script] with your Sierra Chart Account Name and request that your account be activated for free access for DTC Protocol development.
- Log into Sierra Chart with your Sierra Chart Account Name and Password.
- Select Global Settings >> Data/Trade Service Settings on the Sierra Chart menu.
- Set the Service to DTC Service. This fully supports the DTC Protocol as a Client and can be used to establish a connection to a DTC Protocol compliant Server for testing.
- Set Connection Details >> Server Address to the IP and port number of the DTC Server. Format: Address:Port.
The Port number is required when connecting to a remote server. The port number is optional when connecting to a local server which is started as an executable program. If a port is specified, that will be a port which is used to connect to the Server whether it is local or remote. If the Port is not specified, then Sierra Chart will determine a Port when connecting to a local server executable program and pass it to the program on the commandline as a parameter. Example: /Port:1234.
- The Sierra Chart Test Client supports non-TLS and TLS connections. TLS connections use Open SSL. Set Connection Details >> Use TLS to True to use a TLS connection. TLS version 1.2 is used. This is supported in version 1295 and higher of Sierra Chart.
- The Sierra Chart Test Client does not support ZLib compression for historical price data on the primary DTC Protocol connection used for market data or trading. It is necessary to use a separate historical data connection for compression. In this case set Use Separate Historical Data Connection to True to use a separate connection.
- Set the Primary Connection Encoding to the encoding that you want to use for the primary connection. If it is set to other than Binary, then an Encoding Request will be sent to the Server using Binary Encoding since this is the default encoding that Sierra Chart uses and expects the server to be using as the default.
It is necessary that the Server has implemented support for the Encoding Request message.
- Set the other Connection Details as required.
- Connection Details >> Executable File: If you want Sierra Chart to run a server executable file upon connection, then specify the path and filename to the server executable in the Connection Details >> Executable File box. The Server program will need to listen for a network connection on the specified Port.
The format is: [absolute or relative path to executable server program]/[filename.exe].
- Press OK.
- To connect to the DTC Server, select File >> Connect to Data Feed .
- If the DTC Server has set TradingIsSupported to a nonzero number in the LOGIN_RESPONSE message, then after 5 seconds, the DTC Server will receive the following request messages from the Client: OPEN_ORDERS_REQUEST, HISTORICAL_ORDER_FILLS_REQUEST, CURRENT_POSITIONS_REQUEST.
HISTORICAL_ORDER_FILLS_REQUEST is only sent once upon the connection and will not be sent again during the connection to the Server. The other messages can be received by the Server at any later time during the connection.
You can cause them to be sent by selecting Trade >> Refresh Trade Data from Service.
- To open a chart File >> Find Symbol. Manually type a symbol into the Selected Symbol box and press Open Intraday Chart or Open Historical Chart. This will cause the following messages to be sent to the DTC server:
- To perform trading, disable Trade Simulation by removing the checkmark from Trade >> Trade Simulation Mode On . For further instructions, refer to Overview of Trading.
- Refer to the Trade Window documentation to submit an order.
At this time the s_HistoricalPriceDataResponseTrailer message is not yet supported in Sierra Chart by either the Server or the Client.
Populating Symbol List in Sierra Chart
It is supported to add symbols that a DTC Server provides market data and trading support for, to Sierra Chart so they can be found by the user. And so that the settings for those symbols are known by Sierra Chart when Sierra Chart is started, before Sierra Chart connects to the DTC Server.
This is supported by sending an unsolicited SECURITY_DEFINITION_RESPONSE message to Sierra Chart for each symbol you want to add to Sierra Chart.
This can be done after the Logon process from the Client to the Server is complete.
For each security definition that is sent unsolicited to Sierra Chart, this will cause the symbol and the associated settings to be added to Global Settings >> Symbol Settings.
The symbols will be listed in the Find Symbol window which is opened through File >> Find Symbol.
When sending the Security Definition, set the fields of that message as follows:
- RequestID: This must be set to 0 to cause the Security Definition data to be inserted into the Global Symbol Settings.
- Symbol: This needs to be set to the symbol.
- Exchange: Sierra Chart combines the Symbol and Exchange into one text string by using a delimiter. Format example: Symbol-Exchange. If the Exchange field is set, then set the delimiter you want Sierra Chart to use through the SymbolExchangeDelimiter field in the LOGON_RESPONSE message.
- Description: This is recommended to be set.
- MinPriceIncrement: This needs to be set.
- PriceDisplayFormat: This needs to be set.
- CurrencyValuePerIncrement: This is recommended to be set.
- IsFinalMessage: Set this to 1.
- OrderIntPriceMultiplier: Not used.
- MarketDataIntPriceDivisor: Not used.
- UnderlyingSymbol: Not used.
*Last modified Wednesday, 01st March, 2017.