Topics
Replies
Vasilios-G
18 Nov 2024, 19:22
( Updated at: 19 Nov 2024, 06:35 )
RE: RE: RE: "ACCESS_DENIED Error When Requesting Access Token via Open API"
PanagiotisCharalampous said:
Vasilios-G said:
PanagiotisCharalampous said:
Hi Vasilie,
Try using https://openapi.ctrader.com/apps/token to retrieve the token and let me know if this works.
Best regards,
Panagiotis
Hi Panagiotis,
Thank you for your reply.
I’ve tried using the suggested URL https://openapi.ctrader.com/apps/token in almost every possible place in my code, including replacing both the
auth_url
andtoken_url
:python
Code kopieren
# URLs for authentication and token retrieval self.auth_url = 'https://openapi.ctrader.com/apps/auth' self.token_url = 'https://openapi.ctrader.com/apps/token'
Unfortunately, despite these efforts, I’m still getting the "ACCESS_DENIED" error when trying to retrieve the access token.
Is there a specific way or place where this URL is supposed to be used that I might be missing? Also, would it be possible for someone to review my code or point out any common pitfalls I might be encountering?
Ελπίζω ειλικρινά να μπορέσετε να με βοηθήσετε περαιτέρω. Η υποστήριξή σας είναι ανεκτίμητη!
Με εκτίμηση,
Vasilios Gerasimou
Hi Vasilie,
Can you share a video demonstrating the exact steps you follow to receive this error, as well as the exact link for which the access is denied?
Best regards,
Panagiotis
Here the proceed frame by frame:
i click on the link:
copy the access token and paste it here:
After pressing the enter button:
This is what it looks like when I use the link you provided, or rather, an error already appears on the page where I retrieve the token.
Regards, Vasili.
@Vasilios-G
Vasilios-G
17 Nov 2024, 15:16
( Updated at: 17 Nov 2024, 16:38 )
RE: "ACCESS_DENIED Error When Requesting Access Token via Open API"
PanagiotisCharalampous said:
Hi Vasilie,
Try using https://openapi.ctrader.com/apps/token to retrieve the token and let me know if this works.
Best regards,
Panagiotis
Hi Panagiotis,
Thank you for your reply.
I’ve tried using the suggested URL https://openapi.ctrader.com/apps/token in almost every possible place in my code, including replacing both the auth_url
and token_url
:
python
Code kopieren
# URLs for authentication and token retrieval
self.auth_url = 'https://openapi.ctrader.com/apps/auth'
self.token_url = 'https://openapi.ctrader.com/apps/token'
Unfortunately, despite these efforts, I’m still getting the "ACCESS_DENIED" error when trying to retrieve the access token.
Is there a specific way or place where this URL is supposed to be used that I might be missing? Also, would it be possible for someone to review my code or point out any common pitfalls I might be encountering?
Ελπίζω ειλικρινά να μπορέσετε να με βοηθήσετε περαιτέρω. Η υποστήριξή σας είναι ανεκτίμητη!
Με εκτίμηση,
Vasilios Gerasimou
@Vasilios-G
Vasilios-G
19 Nov 2024, 19:28 ( Updated at: 20 Nov 2024, 06:50 )
RE: RE: RE: RE: RE: "ACCESS_DENIED Error When Requesting Access Token via Open API"
PanagiotisCharalampous said:
Hi there,
when i do it like this:
i get the same error. Can you explain it to me step by step.
@Vasilios-G