Demo account verification error ?
Demo account verification error ?
06 Jul 2019, 09:56
I'm using the generated protobuf messages from Open-API-2.0-.Net-Sample.
The accounts are demo accounts on the live system.
I use the following parameters to log in.
clientId = "178_bksI2VoPV1DXcpfvdcylCSVgNto35ZsdftlaSaEEz6S348pxLEN7";
clientSecret = "S7nddPMfQFeAh8MjCznVEsDfJ35DyHIeQJpAaCf2ktuVdbGfAU"
Host: demo.ctraderapi.com
Port: 5035
accountID = 3520046
token = "UGVX5321"
when I send ProtoOAAccountAuthReq, I received error missage:
errorCode:CH_CTID_TRADER_ACCOUNT_NOT_FOUND, description:Unable to find cTID trader account with id=3520046}}
Why?
Replies
andrew.okri@gmail.com
12 Feb 2025, 00:00
( Updated at: 12 Feb 2025, 00:12 )
RE: Demo account verification error ?
PanagiotisCharalampous said:
Hi 66281850,
It seems you are using the trading account number instead of the account ID. Please try using ProtoOATrader.ctidTraderAccountId and let us know if this works.
Best Regards,
Panagiotis
Hi Panaglotis,
I am having some confusion on what is Account ID and Account number since the API backend pages changed to the new format. Before, we had access to a list of accounts and could drill down to see the details of each account. All we are able to see nowadays is as follows:

My question therefore is, can we say the number in the image is the account ID. I have used this number as the account ID for AccountAuthReq calls lately and l get Trader Account not authorized. If this is not it, how do we get access to the Account ID? If it is, why am l getting Trader Account not authorized? Mind you, l am using very old code that has connected multiple times in the past.
Regards
Andrew
@andrew.okri@gmail.com
PanagiotisCharalampous
08 Jul 2019, 10:29
Hi 66281850,
It seems you are using the trading account number instead of the account ID. Please try using ProtoOATrader.ctidTraderAccountId and let us know if this works.
Best Regards,
Panagiotis
@PanagiotisCharalampous