Login Page - Create Account

Support Board


Date/Time: Mon, 15 Sep 2025 16:45:45 +0000



Post From: Subject: DTC Protocol Historical Data Request - Python Client Issues

[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.