DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 10:34:58 +0000
Post From: Please update DTC protocol documentation and header files
[2022-03-25 12:36:10] |
User406106 - Posts: 6 |
It seems that the documentation has not been updated recently. There are multiple messages that contain much more fields than it is documented. Even the HEARTBEAT message, which supposed to be 16 bytes as per the docs and the C++ header file at https://dtcprotocol.org/DTC_Files/DTCProtocol.h is much, much longer now as the server sends me 62 byte heartbeats. Judged by the incoming messages when I switch to JSON protocol I can see that there are at least 10 undocumented fields in the messages. Besides, the currently available DTCProtocol.h seems to be not just incomplete but also incorrect here and there. For example: // From DTCProtocol.h lines 3101..3104 (struct s_OrderUpdate): char PreviousClientOrderID[ORDER_ID_LENGTH]; char FreeFormText[ORDER_FREE_FORM_TEXT_LENGTH]; t_DateTimeWithMillisecondsInt OrderReceivedDateTime; // this gives me invalid dates, but works with t_DateTime t_DateTimeWithMilliseconds LatestTransactionDateTime; And again, based on the JSON messages at least one Username field is undocumented. Could you please make an up-to-date DTCProtocol.h available containing the latest message definitions? I understand that updating the docs may take a longer time but the updated header would also be a great help for now. |