CH_CTID_TRADER_ACCOUNT_NOT_FOUND
CH_CTID_TRADER_ACCOUNT_NOT_FOUND
12 Dec 2019, 04:57
I got an error below with AuthorizationExample.
What's wrong?
----------------------------------------------------------------------------
Response ProtoOAApplicationAuthRes received.
Response: PROTO_OA_APPLICATION_AUTH_RES
Something went wrong.
Response: errorCode: "CH_CTID_TRADER_ACCOUNT_NOT_FOUND"
description: "Unable to find cTID trader account with id=3242xxx"
----------------------------------------------------------------------------
Replies
PanagiotisCharalampous
12 Dec 2019, 09:37
RE: RE:
Hi kahsa,
I have written it above. It can be found in ProtoOATrader.ctidTraderAccountId.
Best Regards,
Panagiotis
@PanagiotisCharalampous
kahsa
12 Dec 2019, 10:04
RE: RE: RE:
Oh..OK, then.....
Excuse me....How can I get the ProtoOATrader.ctidTraderAccountId?
I've just run this example https://github.com/spotware/ctrader-open-api-v2-java-example/blob/master/openapi2-example/src/main/java/com/spotware/example/AuthorizationExample.java
along with this "How to start" section https://github.com/spotware/ctrader-open-api-v2-java-example/blob/master/README.md ,
and I can not find how to get the ProtoOATrader.ctidTraderAccountId in it,
but it says "CTID_TRADER_ACCOUNT_ID
(number) It is data.accountId
from "Trading Accounts" in Playground of your application".
Where is the complete manual??
@kahsa
PanagiotisCharalampous
12 Dec 2019, 10:09
Hi kahsa,
You can find the Open API documentation here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 11:00
Hi kahsa,
The Java example works fine, you just need to use the correct data.
It is
data.accountId
from "Trading Accounts" in Playground of your application".
Yes this is correct. You can also get all the trader's accounts using ProtoOATraderReq.
Best Regards,
Panagiotis
@PanagiotisCharalampous
kahsa
12 Dec 2019, 11:35
RE:
There is no example using ProtoOATraderReq and getting trader account id in openapi2-example directory.
OK, so you mean BEFORE running those examples, we need to obtain trading account id somehow using ProtoOATraderReq by myself, to run the AuthorizationExample, and then, the AuthorizationExamle works, right?
Where can I find that example?
By the way in my Playground page, when I click the "Trading Accounts" button, it returns 403 Forbidden.
And the "cTID Profice" button too.
Is this no problem?
@kahsa
PanagiotisCharalampous
12 Dec 2019, 11:42
Hi kahsa,
If you need a more complete example using Open API, try our .Net Open API Sample. We will check the Playground section.
Best Regards,
Panagiotis
@PanagiotisCharalampous
mihai.brusturean
24 Feb 2020, 15:53
RE:
PanagiotisCharalampous said:
Hi kahsa,
If you need a more complete example using Open API, try our .Net Open API Sample. We will check the Playground section.
Best Regards,
Panagiotis
Hi Panagiotis,
Did you manage to find a fix for the Playground page issue?
I am also getting 403 Forbidden when clicking on 'Trading Accounts' and 'cTID Profile', so I can't get the CTID_TRADER_ACCOUNT_ID.
Thanks,
Mihai
@mihai.brusturean
PanagiotisCharalampous
25 Feb 2020, 08:33
Hi Mihai,
The issue has not been fixed yet. You can find the correct links below
https://api.spotware.com/connect/profile?access_token=
https://api.spotware.com/connect/tradingaccounts?access_token=
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Dec 2019, 08:46
Hi kahsa,
This probably happens because you use the trading account number instead of the trading account id. You need to use the trading account id which can be found in ProtoOATrader.ctidTraderAccountId.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous