whats the endpoint for ProtoOAApplicationAuthReq message?

Created at 13 Nov 2023, 01:30
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!
ET

etiennez0r

Joined 13.11.2023

whats the endpoint for ProtoOAApplicationAuthReq message?
13 Nov 2023, 01:30


I'm trying to send the payload from php for the message ProtoOAApplicationAuthReq like this:

        $content = json_encode([
            'payload' => [
                'clientId' => env('CTRADER_CLIENT_ID'),
                'clientSecret' => env('CTRADER_SECRET'),
            ]
        ]);
        $tuCurl = curl_init();
        curl_setopt($tuCurl, CURLOPT_URL, "live.ctraderapi.com");
        curl_setopt($tuCurl, CURLOPT_PORT, 5036);
        curl_setopt($tuCurl, CURLOPT_VERBOSE, 0);
        curl_setopt($tuCurl, CURLOPT_POSTFIELDS, $content);
        $tuData = curl_exec($tuCurl);

What am I doing wrong? Is that the right endpoint?


@etiennez0r
Replies

MesBroOne
24 Sep 2024, 19:25

I have the same problem. Did you fix it?


@MesBroOne

PanagiotisCharalampous
25 Sep 2024, 05:33

Hi there,

You can find the Open API endpoints in the link below

https://help.ctrader.com/open-api/proxies-endpoints/

Best regards,

Panagiotis


@PanagiotisCharalampous