Historical Range

symbols_range


Results
Historical ranges for open/high/low/close/volume/change/returns

Specification
Endpoint
symbols_range?symbols={symbols}&field={field}

Support
Current values

API Call Counts
50 per API call.

API Plan
gold


Quick Examples

Input Parameters
symbols

input the symbols, seperated by commas (max 20)

Example : BTCUSD,ETHUSD


field

The code of the field. e.g. open = Open Price, high= High Price, low = Low Price, close = Close Prices, volume= Volume, chg = 1 Day Change ($), return = 1 Day Change (%)

Example : close



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": 2,
    "page_size": 1,
    "current_page": 1,
    "total_pages": 1,
    "results": [
        {
            "symbol": "IBM",
            "symbol_name": "International Business Machines Corp.",
            "composite_ticker": "IBM:US",
            "figi": "BBG000BLNQ16",
            "share_class_figi": "BBG001S5S399",
            "return_low_1w": -0.42,
            "return_low_date_1w": "2019-12-24",
            "return_high_1w": 0.77,
            "return_high_date_1w": "2019-12-20",
            "return_low_10d": -0.42,
            "return_low_date_10d": "2019-12-24",
            "return_high_10d": 0.77,
            "return_high_date_10d": "2019-12-20",
            "return_low_20d": -0.82,
            "return_low_date_20d": "2019-12-13",
            "return_high_20d": 1.17,
            "return_high_date_20d": "2019-12-12",
            "return_low_21d": -0.82,
            "return_low_date_21d": "2019-12-13",
            "return_high_21d": 1.17,
            "return_high_date_21d": "2019-12-12",
            "return_low_1m": -1.15,
            "return_low_date_1m": "2019-12-02",
            "return_high_1m": 1.17,
            "return_high_date_1m": "2019-12-12",
            "return_low_50d": -1.56,
            "return_low_date_50d": "2019-11-11",
            "return_high_50d": 1.21,
            "return_high_date_50d": "2019-11-25",
            "return_low_3m": -5.52,
            "return_low_date_3m": "2019-10-17",
            "return_high_3m": 1.58,
            "return_high_date_3m": "2019-11-04",
            "return_low_100d": -5.52,
            "return_low_date_100d": "2019-10-17",
            "return_high_100d": 1.58,
            "return_high_date_100d": "2019-11-04",
            "return_low_6m": -5.52,
            "return_low_date_6m": "2019-10-17",
            "return_high_6m": 4.59,
            "return_high_date_6m": "2019-07-18",
            "return_low_200d": -5.52,
            "return_low_date_200d": "2019-10-17",
            "return_high_200d": 4.59,
            "return_high_date_200d": "2019-07-18",
            "return_low_9m": -5.52,
            "return_low_date_9m": "2019-10-17",
            "return_high_9m": 4.59,
            "return_high_date_9m": "2019-07-18",
            "return_low_ytd": -5.52,
            "return_low_date_ytd": "2019-10-17",
            "return_high_ytd": 8.46,
            "return_high_date_ytd": "2019-01-23",
            "return_low_1y": -5.52,
            "return_low_date_1y": "2019-10-17",
            "return_high_1y": 8.46,
            "return_high_date_1y": "2019-01-23",
            "return_low_2y": -7.63,
            "return_low_date_2y": "2018-10-17",
            "return_high_2y": 8.46,
            "return_high_date_2y": "2019-01-23",
            "return_low_3y": -7.63,
            "return_low_date_3y": "2018-10-17",
            "return_high_3y": 8.86,
            "return_high_date_3y": "2017-10-18",
            "return_low_5y": -7.63,
            "return_low_date_5y": "2018-10-17",
            "return_high_5y": 8.86,
            "return_high_date_5y": "2017-10-18",
            "return_low_10y": -8.28,
            "return_low_date_10y": "2013-04-19",
            "return_high_10y": 8.86,
            "return_high_date_10y": "2017-10-18",
            "return_low_20y": -15.54,
            "return_low_date_20y": "2000-10-18",
            "return_high_20y": 12.02,
            "return_high_date_20y": "2001-01-18",
            "return_low_alltime": -23.5185,
            "return_low_date_alltime": "1987-10-19",
            "return_high_alltime": 13.1603,
            "return_high_date_alltime": "1999-04-22"
        },
        {
            "symbol": "MSFT",
            "symbol_name": "Microsoft Corporation",
            "composite_ticker": "MSFT:US",
            "figi": "BBG000BPHFS9",
            "share_class_figi": "BBG001S5TD05",
            "return_low_1w": -0.02,
            "return_low_date_1w": "2019-12-24",
            "return_high_1w": 1.09,
            "return_high_date_1w": "2019-12-20",
            "return_low_10d": -0.54,
            "return_low_date_10d": "2019-12-17",
            "return_high_10d": 1.09,
            "return_high_date_10d": "2019-12-20",
            "return_low_20d": -0.54,
            "return_low_date_20d": "2019-12-17",
            "return_high_20d": 1.09,
            "return_high_date_20d": "2019-12-20",
            "return_low_21d": -0.54,
            "return_low_date_21d": "2019-12-17",
            "return_high_21d": 1.21,
            "return_high_date_21d": "2019-12-06",
            "return_low_1m": -1.21,
            "return_low_date_1m": "2019-12-02",
            "return_high_1m": 1.21,
            "return_high_date_1m": "2019-12-06",
            "return_low_50d": -1.21,
            "return_low_date_50d": "2019-12-02",
            "return_high_50d": 1.21,
            "return_high_date_50d": "2019-12-06",
            "return_low_3m": -1.77,
            "return_low_date_3m": "2019-10-02",
            "return_high_3m": 2.46,
            "return_high_date_3m": "2019-10-28",
            "return_low_100d": -1.77,
            "return_low_date_100d": "2019-10-02",
            "return_high_100d": 2.46,
            "return_high_date_100d": "2019-10-28",
            "return_low_6m": -3.43,
            "return_low_date_6m": "2019-08-05",
            "return_high_6m": 2.67,
            "return_high_date_6m": "2019-08-08",
            "return_low_200d": -3.43,
            "return_low_date_200d": "2019-08-05",
            "return_high_200d": 2.67,
            "return_high_date_200d": "2019-08-08",
            "return_low_9m": -3.43,
            "return_low_date_9m": "2019-08-05",
            "return_high_9m": 3.31,
            "return_high_date_9m": "2019-04-25",
            "return_low_ytd": -3.68,
            "return_low_date_ytd": "2019-01-03",
            "return_high_ytd": 4.65,
            "return_high_date_ytd": "2019-01-04",
            "return_low_1y": -3.68,
            "return_low_date_1y": "2019-01-03",
            "return_high_1y": 4.65,
            "return_high_date_1y": "2019-01-04",
            "return_low_2y": -5.43,
            "return_low_date_2y": "2018-10-10",
            "return_high_2y": 7.57,
            "return_high_date_2y": "2018-03-26",
            "return_low_3y": -5.43,
            "return_low_date_3y": "2018-10-10",
            "return_high_3y": 7.57,
            "return_high_date_3y": "2018-03-26",
            "return_low_5y": -9.25,
            "return_low_date_5y": "2015-01-27",
            "return_high_5y": 10.45,
            "return_high_date_5y": "2015-04-24",
            "return_low_10y": -11.4,
            "return_low_date_10y": "2013-07-19",
            "return_high_10y": 10.45,
            "return_high_date_10y": "2015-04-24",
            "return_low_20y": -15.61,
            "return_low_date_20y": "2000-04-24",
            "return_high_20y": 19.57,
            "return_high_date_20y": "2000-10-19",
            "return_low_alltime": -30.1158,
            "return_low_date_alltime": "1987-10-19",
            "return_high_alltime": 19.5749,
            "return_high_date_alltime": "2000-10-19"
        }
    ]
}

REST
GET https://www.cryptoquote.io/analytics/v1/?api=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key
Python
import requests 
r = requests.get("https://www.cryptoquote.io/analytics/v1/?api=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&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=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key',
	port: 80,
	path: 'https://www.cryptoquote.io/analytics/v1/?api=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&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=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key");
	if (response.IsSuccessStatusCode)
	{
		//Your custom response parser code
	}
}
Java
String uri = "https://www.cryptoquote.io/analytics/v1/?api=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&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=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key'))
obj <- fromJSON(json)
PHP
$url = 'https://www.cryptoquote.io/analytics/v1/?api=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&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=symbols_range&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key';
$.ajax({
		url: url,
		type: "GET",
		dataType: 'json'
}).done(function (data) {
	console.log(data);
});