Login Page - Create Account

DTC Protocol Discussion Forum


Date/Time: Fri, 29 Nov 2024 16:31:41 +0000



Post From: DTC Client Programming for Sierra Chart platform

[2017-12-01 20:26:18]
DTC Engineering - Posts: 320

It sounds like the TradeAccount field is necessary and will therefore dictate whether or not it is simulated
Yes. It is necessary.

. If I send an order to [live account number] or [demo account number], then the user must remember whether the account is live or demo. Correct?

The order will have associated with it, the specified Trade Account and it is the Trading service that Sierra Chart is connected to, which will determine what to do with it.

You can get a list of the trade accounts with this message:
https://www.dtcprotocol.org/index.php?page=doc/DTCMessages_AccountListMessages.php#Messages-TRADE_ACCOUNTS_REQUEST

You should only be using one of the accounts in the received list. The user should only be able to use one of those accounts.

Another thing that is possible that might help and we can also provide additional help to you with, is that you can specify on the command line what particular trading service Sierra Chart will connect to and any of the associated fields required for that service.
Date Time Of Last Edit: 2017-12-01 20:26:54