Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 15:54:57 +0000



Post From: Discrepancy in message type 117 for JSON Compact formatting

[2020-01-16 20:58:05]
User258363 - Posts: 11
Hello, I wasn't sure to post this in SC support or here so I will try here first. I am consuming messages in JSON format for now and I noticed that the format for message type 117 doesn't match the header file ordering. This is the definition for type 117 from http://dtcprotocol.org/DTC_Files/DTCProtocol.h

struct s_MarketDataUpdateBidAskCompact
  {
    uint16_t Size;
    uint16_t Type;

    float BidPrice;
    float BidQuantity;
    float AskPrice;
    float AskQuantity;

    t_DateTime4Byte DateTime;

    uint32_t SymbolID;

...

but in the JSON message I am seeing the ordering looks more like message type 108. Below is a copy and paste of the 117 message from SC DTC server. As you can see, the symbol id (1102) is printed first while in the "DTCProtocol.h" for message type 117 has it listed last.

{"Type":117,"F":[1102,331000,283,331025,137,1579206344]}

Is this expected? I would think the header file needs to be updated.