whats the endpoint for ProtoOAApplicationAuthReq message?
Created at 13 Nov 2023, 01:30
ET
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?
Replies
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
MesBroOne
24 Sep 2024, 19:25
I have the same problem. Did you fix it?
@MesBroOne