Login Page - Create Account

Support Board


Date/Time: Thu, 06 Mar 2025 04:27:36 +0000



Post From: Flatten order gives error Trade Account is empty

[2022-01-19 03:14:29]
User726340 - Posts: 30
looks like a bug in DTCProtocol.cpp , it has few typos of using FreeFormText instead of correct fields. It works now after i made below changes.

3190c3190
< strncpy(Symbol, NewValue, sizeof(Symbol) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(Symbol) - 1);
3207c3207
< strncpy(Exchange, NewValue, sizeof(Exchange) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(Exchange) - 1);
3224c3224
< strncpy(TradeAccount, NewValue, sizeof(TradeAccount) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(TradeAccount) - 1);
3241c3241
< strncpy(ClientOrderID, NewValue, sizeof(ClientOrderID) - 1);
---
> strncpy(FreeFormText, NewValue, sizeof(ClientOrderID) - 1);