Historical Performance

symbols_performance


Results
Historical performance for open/high/low/volume/change/return

Specification
Endpoint
symbols_performance?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, volume= Volume, chg = 1 Day Change ($), return = 1 Day Change (%)

Example : return



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_1w": -0.24,
            "return_10d": 0.78,
            "return_20d": 1.01,
            "return_21d": 1.54,
            "return_1m": 1.12,
            "return_50d": -1.76,
            "return_3m": -5.56,
            "return_100d": -4.89,
            "return_6m": -1.2,
            "return_200d": 1.58,
            "return_9m": -0.54,
            "return_ytd": 21.61,
            "return_1y": 23.14,
            "return_2y": -4.37,
            "return_3y": -8.99,
            "return_5y": 1.6,
            "return_10y": 35.61,
            "return_20y": 81.7,
            "return_alltime": 1688.97
        },
        {
            "symbol": "MSFT",
            "symbol_name": "Microsoft Corporation",
            "composite_ticker": "MSFT:US",
            "figi": "BBG000BPHFS9",
            "share_class_figi": "BBG001S5TD05",
            "return_1w": 0.98,
            "return_10d": 2.76,
            "return_20d": 5.02,
            "return_21d": 4.75,
            "return_1m": 4.36,
            "return_50d": 10.19,
            "return_3m": 15.41,
            "return_100d": 14.76,
            "return_6m": 18.89,
            "return_200d": 20.28,
            "return_9m": 37.09,
            "return_ytd": 58.98,
            "return_1y": 58.89,
            "return_2y": 90.81,
            "return_3y": 164.22,
            "return_5y": 271.89,
            "return_10y": 545.7,
            "return_20y": 312.57,
            "return_alltime": 252646.73
        }
    ]
}

Examples

Get Historical performance for 1 Day Change % Price field for BTCUSD,ETHUSD

https://www.cryptoquote.io/analytics/v1/?api=symbols_performance&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key
REST
GET https://www.cryptoquote.io/analytics/v1/?api=symbols_performance&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_performance&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_performance&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key',
	port: 80,
	path: 'https://www.cryptoquote.io/analytics/v1/?api=symbols_performance&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_performance&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_performance&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_performance&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key'))
obj <- fromJSON(json)
PHP
$url = 'https://www.cryptoquote.io/analytics/v1/?api=symbols_performance&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_performance&symbols=BTCUSD.gdax,ETHUSD.kraken&field=return&key=your_api_key';
$.ajax({
		url: url,
		type: "GET",
		dataType: 'json'
}).done(function (data) {
	console.log(data);
});