Support Board
Date/Time: Mon, 15 Sep 2025 18:42:03 +0000
Subject: DTC Protocol Historical Data Request - Python Client Issues
View Count: 73
[2025-09-10 15:56:36] |
User810926 - Posts: 1 |
Hello, I'm developing a Python client to retrieve historical data only (not live streaming) from Sierra Charts DTC Protocol Server for MYM futures backtesting. Current Setup: Sierra Charts Instance #2 configured as DTC server DTC Protocol Server enabled on ports 11109/11110 JSON encoding, market data relay allowed Connection successful to both ports Issue: TCP connection works ✅ Logon requests sent but no logon response received ❌ Connection times out after heartbeat interval Code Used (based on support thread solutions): dtc_logon_request = {'Type': 1, 'ProtocolVersion': 8, 'Username': '', 'Password': '', 'HeartbeatIntervalInSeconds': 30} request_data = json.dumps(dtc_logon_request, ensure_ascii=True).encode('latin-1') request_data += b'\x00' client_socket.sendall(request_data) Sierra Charts Message Log shows: "DTC Protocol Server: New client connection accepted" "DTC client disconnected" (after timeout) No logon processing messages Questions: Is there a specific configuration needed for historical data access? Are there additional authentication requirements for MYM futures data? What's the correct message format for historical data requests? Goal: Retrieve historical MYM futures bars for backtesting (not live streaming). Any guidance would be greatly appreciated. |
[2025-09-11 22:29:20] |
Sierra_Chart Engineering - Posts: 20892 |
Effectively this question is an involved debugging request. We simply do not have the time or the interest to get involved in these. This is simply completely impossible. There is nothing special you need to do, other than following the documentation provided: Is there a specific configuration needed for historical data access? Are there additional authentication requirements for MYM futures data? What's the correct message format for historical data requests? You must be doing something wrong: Logon requests sent but no logon response received ❌ However, the data is not accessible for this reason but this is not the reason you are receiving no logon response: Data and Trading Communications (DTC) Protocol Server: Restrictions You are simply going to get an express rejection for a historical data request. 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-09-11 22:30:19
|
To post a message in this thread, you need to log in with your Sierra Chart account: