Try our Forex Analysis and Content API in 3 Easy Steps

Our analysis api documentation is extensive and you can start in minutes.


PHP (CURL)

Below is an example for convert exchange rates data using PHP (CURL):
?php

$curl = curl_init();

curl_setopt_array( $curl, array(
  CURLOPT_PORT => "443",
  CURLOPT_URL => "https://contentapi.tradermade.com/api/v1/hilo_alerts?api_key=api_key",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}


Python

Below is an example for live exchange rates data using Python:
import requests

url = "https://contentapi.tradermade.com/api/v1/hilo_alerts"

querystring = {"api_key":"api_key"}

response = requests.get(url, params=querystring)

print(response.json())


JavaScript (fetch)

Below is an example for historical exchange rates data using jQuery:

var requestOptions = {
method : 'GET',
redirect : 'follow'
};

fetch( 'https://contentapi.tradermade.com/api/v1/hilo_alerts?api_key=api_key', requestOptions)
.then(response => response.text())
.then(result =>  console.log(result))
.catch(error =>  console.log( 'error', error));





JavaScript (jQuery)

Below is an example for historical exchange rates data using jQuery:
var settings = {
"url": "https://contentapi.tradermade.com/api/v1/hilo_alerts?api_key=api_key",
"method": "GET",
"timeout": 0,
};

$.ajax(settings).done(function (response) {
console.log(response);
});