Stuck with CH_CTID_TRADER_ACCOUNT_NOT_FOUND error

Created at 14 Oct 2017, 08:24
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!
CT

ctid331981

Joined 14.10.2017

Stuck with CH_CTID_TRADER_ACCOUNT_NOT_FOUND error
14 Oct 2017, 08:24


Hi folks,

I'm trying to play with java-sample-connect  ; after some difficulties, I can now run my app, authorization request went well, but I stuck with this message when I try to subscribe or to send market order :

sendSubscribeForTradingEventsRequest() Message to be send:
ProtoMessage{subscrbeTradingEventsRequest{accountId:xxx, accessToken:xxx}}
Data sent: xxx 
Data sent: xxx
Length Data received: 00 00 00 5a 
Message Data received: 08 32 12 56 12 20 43 48 5f 43 54 49 44 5f 54 52 41 44 45 52 5f 41 43 43 4f 55 4e 54 5f 4e 4f 54 5f 46 4f 55 4e 44 1a 32 55 6e 61 62 6c 65 20 74 6f 20 66 69 6e 64 20 63 54 49 44 20 74 72 61 64 65 72 20 61 63 63 6f 75 6e 74 20 77 69 74 68 20 69 64 3d 33 30 30 35 31 33 39 
ProcessIncomingDataStream() Message received:
ProtoMessage{ErrorResponse{errorCode:CH_CTID_TRADER_ACCOUNT_NOT_FOUND, description:Unable to find cTID trader account with id=xxx}}

if I understand well this message, the API is unable to recover back my cTID with my trader account id. 

but if I go to https://sandbox-ctweb.spotware.com/ with my trader account id, it appears to be successfully connected to my ctidXXXXX

What went wrong ?

some informations :

- ctID created on https://sandbox-connect.spotware.com, then application created with correct clientID, secretID, and returning well an access_token
- trader account id and link to ctID gone with https://sandbox-ctweb.spotware.com/
 

thanks in advance !

 

 


@ctid331981
Replies

PanagiotisCharalampous
16 Oct 2017, 08:56

Hi ctid331981,

Thanks for posting in our forum. You should use the userID found in the Profile request e.g. https://sandbox-api.spotware.com/connect/profile?oauth_token=test002_access_token 

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctid331981
16 Oct 2017, 09:15

Thanks for your reply and tip !

As you guessed, I was wrong with my userId (I was using the number of the demo account shown in https://sandbox-ctweb.spotware.com/ instead of the real userID )

Now with the URL  https://sandbox-api.spotware.com/connect/profile?oauth_token=XXX_MYTOKEN_XXX I can see a json with a userID (which is the number after ctid... on my ctID account name)

I put this id in my java sample, but unfortunately I still have the same error message...

can I send my real credentials to someone to figure out what really happened ? or another tip ? 

thanks again,

 


@ctid331981

PanagiotisCharalampous
16 Oct 2017, 09:18

Hi,

Please send us an the access token and the userID you are using at community@spotware.com and we will investigate further.

Best Regards,

Panagiotis


@PanagiotisCharalampous