Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 13:27:13 +0000



Post From: DTC client implementation in C#-some pointers needed

[2014-02-12 20:36:59]
Sierra Chart Engineering - Posts: 104368
DTC is relatively new, and there have been some changes. But it is reaching a point where it is becoming stable. The only significant change coming is going to be changing the quantity types to floats rather than integers.

We are going to try to work on that next week.

Other than that, the data structures should not be changing. There might possibly be new members added to a data structure, but not a change. It is not part of the protocol for changes to occur.

The reason for this particular change is we want to be conformant with FIX which uses float types for quantities.

'// The byte ordering is little endian.'
Almost all computers use little endian byte ordering so this is not going to be a concern. You can disregard it.


One thing about reading data over a network socket is that you cannot always be assured of receiving a complete DTC message at once or even receiving the first two bytes of the message which indicates its size, at once. You may receive a partial structure or size and have to wait for the remaining data to arrive on the network socket. The wait time is not significant. For a local connection, this would be within the very low microsecond range.

The point is, when you first are reading for the message size, you need to make sure you have at least two bytes of data in the incoming socket buffer before checking for the size of a message. And when you want to read a complete message/structure out, you need to make sure that you have enough bytes in the buffer before proceeding to process the message/structure.

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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2014-02-12 20:39:59