Invalid access token

Created at 06 Apr 2019, 13:57
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!
VI

viniciusfre

Joined 28.12.2018

Invalid access token
06 Apr 2019, 13:57


Hi,

I am trying to access my Fxpro demo account in demo.ctraderapi.com, port 5035.

I got access_token from Playground from https://connect.spotware.com.

First I send a ProtoOAApplicationAuthReq and get a response. But when I sent my accessToken and accountID, I am receiving:

CH_ACCESS_TOKEN_INVALID Invalid access token

Where do I get the correct token for demo accounts? 


@viniciusfre
Replies

viniciusfre
07 Apr 2019, 13:24

In fact the token was correct, but the accountID was wrong. Now I was wondering where do I find CtidTraderAccountId for each account?


@viniciusfre