Login Page - Create Account

Support Board


Date/Time: Tue, 26 Aug 2025 07:24:25 +0000



[Programming Help] - Inquiry About WebSocket Access for DTC Protocol Server with Teton CME Routing Data

View Count: 488

[2025-02-22 23:42:34]
Endegena - Posts: 8
Hello Sierra Chart Support Team,

I am currently working on integrating my Python trading algorithm with Sierra Chart, and I would like to use the DTC Protocol server via a WebSocket connection. I receive real‑time market data via Teton CME Routing, and I want to ensure that I can correctly configure Sierra Chart to work with my custom Python client.

I have reviewed your documentation and understand that:

• Sierra Chart automatically uses a WebSocket connection when the client connects using a “wss://” URL, with market data messages encoded in JSON Compact.
• For browser-based connections, valid TLS certificates (with filenames TLSCertificate.key and TLSCertificate.crt placed in the /ServerCertificate folder) are required.
• Every message sent over the WebSocket connection must end with a null terminator (a single byte with a value of 0).

To ensure I can successfully integrate my system, I would appreciate clarification on the following points:

1. WebSocket Endpoint Details:
- What is the exact WebSocket URL and port I should use to connect to the DTC Protocol server via WebSocket?
- Are there any account-specific or configuration-specific details that I need to be aware of?

2. Configuration Requirements:
- Besides using the correct URL, is any additional configuration required on the Sierra Chart side (e.g., in DTS settings or elsewhere) to enable WebSocket connections for non-browser clients such as my Python script?

3. TLS Certificates:
- For my custom Python client (which is not a browser), is it necessary to install TLS certificates in the /ServerCertificate folder, or is that requirement only for browser-based connections?

4. Additional Documentation or Examples:
- Do you have any sample code or further documentation that illustrates connecting to the DTC Protocol server using WebSocket (including the proper use of a null terminator at the end of messages)?

My goal is to establish a robust, real‑time connection that allows my Python algorithm to both receive market data and submit order signals via an ACSIL bridge within Sierra Chart, while leveraging Teton CME Routing for data. Any additional guidance or clarification you can provide would be greatly appreciated.

Thank you for your assistance.

Best regards,
[2025-02-23 03:11:44]
cmet - Posts: 719
Python DTC Logon Sequence for Beginners

Example code snips attached.
Date Time Of Last Edit: 2025-02-23 04:23:28
attachmentPyDTC_ex.txt - Attached On 2025-02-23 04:23:27 UTC - Size: 1.48 KB - 56 views
[2025-02-23 12:59:55]
User907968 - Posts: 844
Data and Trading Communications (DTC) Protocol Server: Restrictions
[2025-07-28 14:33:43]
Sierra_Chart Engineering - Posts: 20734
My goal is to establish a robust, real‑time connection that allows my Python algorithm to both receive market data
You cannot access market data. Refer to:
Data and Trading Communications (DTC) Protocol Server: Restrictions

and submit order signals via an ACSIL bridge within Sierra Chart,
You can submit orders though.

Let us know if you still have questions, after the above information.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2025-07-28 14:37:52

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account