Range Up / Down

range_up_down


Results
Ranks symbols by the highest Range Up or down

Specification
Endpoint
range_up_down?exchange={exchange}&range_direction={range_direction}&limit={limit}

Support
Current values

API Call Counts
50 per API call.

API Plan
gold



Input Parameters
exchange

The exchange code e.g. gemini. See reference table for list of exchange codes

Example : gemini


range_direction

The type of range direction. Possible values are UP or DOWN

Example : UP


limit

Use limit=n to get the first n rows of the dataset. Use limit=1 to get just the latest row.

Example : 1



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


open_price

The open price of the symbol

Type: number


open_price

Open Price

Type: number


high_price

The high price of the symbol

Type: number


high_price

High Price

Type: number


low_price

Low Price

Type: number


low_price

The low price of the symbol

Type: number


close_price

Close Price

Type: number


close_price

The close price of the symbol

Type: number


chg_1d

The 1 Day Change ($) of the symbol

Type: number


return_1d

The 1 Day Change (%) of the symbol

Type: number


range

The range value of the symbol. i.e. the percentage difference between the current price and open price)

Type: number



Sample Output
{
  "status": "ok",
  "total_records": 4,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 1,
  "results": [
    {
      "symbol": "RAREUSD",
      "symbol_name": "SuperRare/US Dollar",
      "exchange": "gemini",
      "symbol_pair": "RARE/USD",
      "open_price": 0.45,
      "high_price": 0.478,
      "low_price": 0.45,
      "close_price": 0.478,
      "volume": 294,
      "chg_1d": 0.028,
      "return_1d": 6.222222,
      "range": 6.22
    },
    {
      "symbol": "ZECETH",
      "symbol_name": "Zcash/Ethereum",
      "exchange": "gemini",
      "symbol_pair": "ZEC/ETH",
      "open_price": 0.05,
      "high_price": 0.0512,
      "low_price": 0.05,
      "close_price": 0.0512,
      "volume": 59,
      "chg_1d": 0.0012,
      "return_1d": 2.4,
      "range": 2.4
    },
    {
      "symbol": "ZECBTC",
      "symbol_name": "Zcash/Bitcoin",
      "exchange": "gemini",
      "symbol_pair": "ZEC/BTC",
      "open_price": 0.00336,
      "high_price": 0.00363,
      "low_price": 0.00336,
      "close_price": 0.00342,
      "volume": 283,
      "chg_1d": 0.00006,
      "return_1d": 1.785714,
      "range": 1.79
    },
    {
      "symbol": "MIMUSD",
      "symbol_name": "Magic Internet Money/US Dollar",
      "exchange": "gemini",
      "symbol_pair": "MIM/USD",
      "open_price": 0.9971,
      "high_price": 0.9973,
      "low_price": 0.9971,
      "close_price": 0.9973,
      "volume": 49,
      "chg_1d": 0.0002,
      "return_1d": 0.020058,
      "range": 0.02
    }
  ]
}

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