Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 15:41:20 +0000



Post From: New websocket

[2020-04-26 23:59:48]
JasonS - Posts: 11
I see incorrect field ordering in the following JSON compact encoding messages:

MarketDataUpdateBidAskCompact:


DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282300,18,282350,19,1587943806]} | 2020-04-26 19:40:16.297
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282300,18,282350,9,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282325,1,282350,9,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282325,3,282350,9,1587943807]} | 2020-04-26 19:40:17.390
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282325,5,282350,9,1587943807]} | 2020-04-26 19:40:17.390
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282325,6,282350,9,1587943807]} | 2020-04-26 19:40:17.390
DTC client #91. 127.0.0.1 (1) | Send: {"Type":117,"F":[2114831995,282325,7,282350,9,1587943807]} | 2020-04-26 19:40:17.390

Order from DTCProtocol.h:

    float BidPrice;
    float BidQuantity;
    float AskPrice;
    float AskQuantity;
    t_DateTime4Byte DateTime;
    uint32_t SymbolID;

Instead I'm seeing:

    uint32_t SymbolID;
    float BidPrice;
    float BidQuantity;
    float AskPrice;
    float AskQuantity;
    t_DateTime4Byte DateTime;



MarketDataUpdateTradeCompact:


DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,4,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296
DTC client #91. 127.0.0.1 (1) | Send: {"Type":112,"F":[2114831995,2,282350,1,1587943807]} | 2020-04-26 19:40:17.296

Order from DTCProtocol.h:

    float Price;
    float Volume;
    t_DateTime4Byte DateTime;
    uint32_t SymbolID;
    AtBidOrAskEnum AtBidOrAsk;

Instead I'm seeing:

    uint32_t SymbolID;
    AtBidOrAskEnum AtBidOrAsk;
    float Price;
    float Volume;
    t_DateTime4Byte DateTime;