Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 17:03:06 +0000



Post From: DTC Protocol - LOGON_REQUEST

[2024-10-04 13:39:59]
stefkovic.m28 - Posts: 17
Hello,

I have created a script for automatic trading using DTC protocol in Sierra Charts.
I have active connection to DTC, but when I call command LOGON_RESPONSE, I canĀ“t get answer from DTC after a few seconds.

Attached screen from Sierra shows my DTC settings, if there is something wrong.
Both methods for Logon, also with Account / without Account I have also used, but there is no answer from DTC.
You can find MessageLogs attached.

JSON formated script looks like (account & passwork in this case with xxx):

{

"MessageType": "LogonRequest",

"Username": "xxx",

"Password": "xxx",

"ProtocolVersion": 8,

"HeartbeatIntervalInSeconds": 20,

"ClientName": "OL Client",

"TradeMode": 0

}


After that I can get only this answer:

{

"Type": 3,

"NumDroppedMessages": 0,

"CurrentDateTime": 1728023496,

"SecondsSinceLastReceivedHeartbeat": 0,

"NumberOfOutstandingSentBuffers": 0,

"PendingTransmissionDelayInMilliseconds": 0,

"CurrentSendBufferSizeInBytes": 0,

"SendingDateTimeMicroseconds": 1728023496476945,

"DataCompressionRatio": 0,

"TotalUncompressedBytes": 0,

"TotalCompressionTime": 0,

"NumberOfCompressions": 0,

"SourceIPAddress": 2130706433,

"MaximumSendBufferSizeInBytes": 0,

"MaximumSendBufferSizeInBytesDateTime": 0

}

Can you please help me with this? Is there mistake in syntax or someting other in general settings?
many thanks

regards, Milan
imageimage001.png / V - Attached On 2024-10-04 13:27:06 UTC - Size: 92.52 KB - 27 views
attachmentLOG-NO-PSW.txt - Attached On 2024-10-04 13:28:19 UTC - Size: 1.41 KB - 49 views
attachmentLOG-WITH-PSW.txt - Attached On 2024-10-04 13:28:23 UTC - Size: 1.43 KB - 45 views