Average Directional Movement Index (ADX)

ta_adx


Results
Calculate Average Directional Movement Index of a global symbol

Specification
Endpoint
ta_adx?symbol={symbol}&start_data={start_date}&end_date={end_date}&period={period}

Support
Current and Historical values

API Call Counts
20 per API call.

API Plan
bronze


Quick Examples

Input Parameters
symbol

The common/local symbol/ticker of the symbol

Example : BTCUSD


start_date

Start Date

Example : 2019-01-01


end_date

End Date

Example : 2019-01-01


period

The Period value for the technical indicator e.g. 14 means 14-day period

Example : 14



Output Descriptions
symbol

The common/local symbol/ticker of the symbol

Type: string


symbol_name

The name of the symbol

Type: string


exchange

the exchange code e.g. gemini

Type: string


symbol_pair

the exchange symbol pairs

Type: string



Sample Output
{
  "status": "ok",
  "total_records": 32,
  "page_size": 32,
  "current_page": 1,
  "total_pages": 1,
  "results": {
    "symbol": "BTCUSD",
    "symbol_name": "Bitcoin/US Dollar",
    "exchange": "gemini",
    "symbol_pair": "BTC/USD",
    "technicals": [
      {
        "date": "2022-02-10",
        "adx": 19.079
      },
      {
        "date": "2022-02-09",
        "adx": 20.289
      },
      {
        "date": "2022-02-08",
        "adx": 19.79
      },
      {
        "date": "2022-02-07",
        "adx": 19.253
      },
      {
        "date": "2022-02-06",
        "adx": 19.008
      },
      {
        "date": "2022-02-05",
        "adx": 18.93
      },
      {
        "date": "2022-02-04",
        "adx": 18.845
      },
      {
        "date": "2022-02-03",
        "adx": 20.032
      },
      {
        "date": "2022-02-02",
        "adx": 21.087
      },
      {
        "date": "2022-02-01",
        "adx": 22.368
      },
      {
        "date": "2022-01-31",
        "adx": 24.069
      },
      {
        "date": "2022-01-30",
        "adx": 23.446
      },
      {
        "date": "2022-01-29",
        "adx": 23.421
      },
      {
        "date": "2022-01-28",
        "adx": 22.969
      },
      {
        "date": "2022-01-27",
        "adx": 22.149
      },
      {
        "date": "2022-01-26",
        "adx": 22.416
      },
      {
        "date": "2022-01-25",
        "adx": 22.073
      },
      {
        "date": "2022-01-24",
        "adx": 21.911
      },
      {
        "date": "2022-01-23",
        "adx": 22.276
      },
      {
        "date": "2022-01-22",
        "adx": 23.56
      },
      {
        "date": "2022-01-21",
        "adx": 24.943
      },
      {
        "date": "2022-01-20",
        "adx": 26.798
      },
      {
        "date": "2022-01-19",
        "adx": 26.619
      },
      {
        "date": "2022-01-18",
        "adx": 26.426
      },
      {
        "date": "2022-01-17",
        "adx": 27.198
      },
      {
        "date": "2022-01-16",
        "adx": 27.784
      },
      {
        "date": "2022-01-15",
        "adx": 28.415
      },
      {
        "date": "2022-01-14",
        "adx": 28.944
      },
      {
        "date": "2022-01-13",
        "adx": 28.477
      },
      {
        "date": "2022-01-12",
        "adx": 28.384
      },
      {
        "date": "2022-01-11",
        "adx": 28.283
      },
      {
        "date": "2022-01-10",
        "adx": 28.58
      }
    ]
  }
}

Examples

Get Average Directional Movement Index for 14-day for BTCUSD from 2019-12-01 to 2020-01-27

https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key
REST
GET https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key
Python
import requests 
r = requests.get("https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key")
data = r.json()
print(data)
Node.js
var http = require('http');
var buffer = '';
var options = {
	host: 'https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key',
	port: 80,
	path: 'https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key',
	headers: headers
};
callback = function(response) {
	response.on('data', function (chunk) {
	buffer += chunk;
});
response.on('end', function () {
	// your code here if you want to use the results !
});
}

var req = http.get(options, callback).end();
C#
using (var client = new HttpClient())
{
	client.BaseAddress = new Uri("{$api_host}");
	client.DefaultRequestHeaders.Clear();
	//ADD Acept Header to tell the server what data type you want
	client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
	//SET Parameters
	HttpResponseMessage response = await client.GetAsync("https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key");
	if (response.IsSuccessStatusCode)
	{
		//Your custom response parser code
	}
}
Java
String uri = "https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key";
URL url = new URL(uri);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
	connection.setRequestMethod("GET");
	connection.setRequestProperty("Accept", "application/json");
InputStream xml = connection.getInputStream();
R
1 - Install package
install.packages("RCurl")
install.packages("jsonlite")
2 - Request the data:
library('RCurl')
require('jsonlite')
json <- getURL(URLencode('https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key'))
obj <- fromJSON(json)
PHP
$url = 'https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key';
$handle = curl_init(); 
	curl_setopt($handle, CURLOPT_URL, $url);
	curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);

	$data = curl_exec($handle);
curl_close($handle);
//parse your data as per your needs....
Javascript
var url = 'https://www.cryptoquote.io/analytics/v1/?api=ta_adx&symbol=BTCUSD.gdax&start_date=2019-12-01&end_date=2020-01-27&period=14&key=your_api_key';
$.ajax({
		url: url,
		type: "GET",
		dataType: 'json'
}).done(function (data) {
	console.log(data);
});