Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 10:06:04 +0000



Post From: I'm considering switching to your data from DTN iqfeed ...

[2021-02-01 20:23:05]
Agent Orange - Posts: 36
For the sake of anyone seeing this thread in the future, I want to point out that apparently I did miss something in the documentation of the DTC server specifications.

For both JSON encoding and JSON Compact Encoding, the DTC specification says, "Messages ... do not contain a size field like the binary encoding, and so each DTC JSON message object is separated with a null (8 bit numeric 0) terminator in the network data stream."

Perhaps this was added after I made the original post in this thread, but I kind of doubt it; I probably just didn't see it, and figured the end of a JSON message wouldn't have any termination other than the "} specified by the JSON spec itself. In either case, the DTC specification and the implementation in Sierra Chart are in agreement, so you'll want to make sure you deal with incoming null bytes and provide them when sending messages to the server.