Demo account verification error ?

Created at 06 Jul 2019, 09:56
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
66

66281850

Joined 26.06.2019

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?

 


@66281850
Replies

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

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