Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 00:06:15 +0000



Post From: Inquiry About WebSocket Access for DTC Protocol Server with Teton CME Routing Data

[2025-02-22 23:41:52]
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,