Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 10:46:27 +0000



Post From: DTC test client not supporting OCO and bracket orders

[2020-03-25 11:22:37]
BeardPower - Posts: 51
Thanks to both of you! Appreciate it.

Sorry, I should have been more clear about it.

I am referring to the latest Sierra Chart as a test client (the DTC Service [trading]), and I am using binary encoding (fixed length).

1. Thanks! That solved both of my issues. I forgot to set it.

2. Yes, but the issue is this (forget about the timeout):
From the SC log: Trade Order Error - Order timed-out waiting for response from service/exchange server. Internal Order ID: 2721. Service Order ID: (none). Symbol: BTCEUR. Account: CoinMetro | 2020-03-25 11:03:24.166 *
What the server receives from the client: ClientOrderID: ['2', '7', '2', '1', '.', '3', '4', '5', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00', '\x00']
Why is the log not using "2721.345" as it is sent to the server?

3. The git repo is here. https://github.com/DTC-protocol/DTC. Why is it not maintained anymore?
I'm using binary encoding (fixed length), so the field order matters. I assume that the documentation is outdated as well because the field order (structure layout) in the DTC documentation is different from the field order (structure layout) in the header files.
E.g. https://dtcprotocol.org/index.php?page=doc/DTCMessages_OrderEntryModificationMessages.php#Messages-SUBMIT_NEW_SINGLE_ORDER
TradeAccount is not near the same fields like in the header file:

char Symbol[SYMBOL_LENGTH];
char Exchange[EXCHANGE_LENGTH];
char TradeAccount[TRADE_ACCOUNT_LENGTH];
char ClientOrderID[ORDER_ID_LENGTH];

4. I'm using the latest SC version.

5. What's the purpose of the "Trade Account" setting in "DTC Service" then? It is transferred to the server, but it is not populated in Sierra Chart. So I assume that the server still has to reply with that "Trade Account".

I also implemented a DTC client. The main issue is that some documentation on the DTC website is outdated and does not match the latest header files.
Date Time Of Last Edit: 2020-03-25 11:36:52