Gap Up / Down

gap_up_down


Results
Ranks symbols by the highest Gap Up or down

Specification
Endpoint
gap_up_down?exchange={exchange}&gap_direction={gap_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


gap_direction

The type of gap 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


gap

The gap value of the symbol i.e. the difference between the current open and the previous high price

Type: numeric



Sample Output
{
    "status": "ok",
    "total_records": 10,
    "page_size": 10,
    "current_page": 1,
    "total_pages": 1,
    "results": [
        {
            "symbol": "BMJJF",
            "symbol_name": "BMO Junior Gold Index ETF",
            "composite_ticker": "BMJJF:US",
            "figi": "BBG000Q8PG46",
            "share_class_figi": "BBG001T6N7P4",
            "symbol_class_code": "ETF",
            "open_price": 44.057,
            "high_price": 44.057,
            "low_price": 44.057,
            "close_price": 44.057,
            "volume": 166,
            "chg_1d": 38.541,
            "return_1d": 698.712835,
            "gap": 38.531
        },
        {
            "symbol": "ISVAF",
            "symbol_name": "BlackRock iShares NASDAQ 100 UCITS ETF USD (Acc)",
            "composite_ticker": "ISVAF:US",
            "figi": "BBG000Q36BQ5",
            "share_class_figi": "BBG001T6CZY4",
            "symbol_class_code": "ETF",
            "open_price": 493.84,
            "high_price": 493.84,
            "low_price": 493.84,
            "close_price": 493.84,
            "volume": 214,
            "chg_1d": 28.3189,
            "return_1d": 6.0833,
            "gap": 28.3189
        },
        {
            "symbol": "DAXXF",
            "symbol_name": "BlackRock iShares Core DAX UCITS ETF (DE)",
            "composite_ticker": "DAXXF:US",
            "figi": "BBG000RQRXG3",
            "share_class_figi": "BBG001SGNC72",
            "symbol_class_code": "ETF",
            "open_price": 124.224276,
            "high_price": 124.224276,
            "low_price": 124.224276,
            "close_price": 124.224276,
            "volume": 622,
            "chg_1d": 16.3143,
            "return_1d": 15.1184,
            "gap": 16.314276
        },
        {
            "symbol": "ISMCF",
            "symbol_name": "BlackRock iShares MSCI USA - UCITS ETF USD (Acc)",
            "composite_ticker": "ISMCF:US",
            "figi": "BBG000PZFNC4",
            "share_class_figi": "BBG001SZTM45",
            "symbol_class_code": "ETF",
            "open_price": 291.1723,
            "high_price": 291.1723,
            "low_price": 291.1723,
            "close_price": 291.1723,
            "volume": 30,
            "chg_1d": 12.9054,
            "return_1d": 4.637778,
            "gap": 12.9054
        },
        {
            "symbol": "EXTDF",
            "symbol_name": "BlackRock iShares STOXX Europe 50 UCITS ETF",
            "composite_ticker": "EXTDF:US",
            "figi": "BBG000HPKS56",
            "share_class_figi": "BBG001SF5DJ9",
            "symbol_class_code": "ETF",
            "open_price": 36.6873,
            "high_price": 36.6873,
            "low_price": 36.6873,
            "close_price": 36.6873,
            "volume": 800,
            "chg_1d": 9.13427,
            "return_1d": 33.151599,
            "gap": 9.13427
        },
        {
            "symbol": "EAUSF",
            "symbol_name": "ETFS Physical Gold",
            "composite_ticker": "EAUSF:US",
            "figi": "BBG000BDTS05",
            "share_class_figi": "BBG001SDCZ70",
            "symbol_class_code": "ETF",
            "open_price": 141,
            "high_price": 141,
            "low_price": 141,
            "close_price": 141,
            "volume": 600,
            "chg_1d": 7,
            "return_1d": 5.223881,
            "gap": 7
        },
        {
            "symbol": "IERNF",
            "symbol_name": "BlackRock iShares MSCI Brazil UCITS ETF USD (Dist)",
            "composite_ticker": "IERNF:US",
            "figi": "BBG000DPT294",
            "share_class_figi": "BBG001SHHWR1",
            "symbol_class_code": "ETF",
            "open_price": 34.6958,
            "high_price": 34.6958,
            "low_price": 34.6958,
            "close_price": 34.6958,
            "volume": 1867,
            "chg_1d": 5.6958,
            "return_1d": 19.64069,
            "gap": 5.6958
        },
        {
            "symbol": "EFFDF",
            "symbol_name": "L&G Cyber Security UCITS ETF",
            "composite_ticker": "EFFDF:US",
            "figi": "BBG00B3Q3DM8",
            "share_class_figi": "BBG00B3PKW85",
            "symbol_class_code": "ETF",
            "open_price": 67.02,
            "high_price": 67.02,
            "low_price": 67.02,
            "close_price": 67.02,
            "volume": 1055,
            "chg_1d": 4.87,
            "return_1d": 7.8359,
            "gap": 4.87
        },
        {
            "symbol": "ISRRF",
            "symbol_name": "BlackRock iShares GBP Corporate Bond 0-5yr UCITS ETF GBP (Dist)",
            "composite_ticker": "ISRRF:US",
            "figi": "BBG00H6V34Y8",
            "share_class_figi": "BBG001TC35G7",
            "symbol_class_code": "ETF",
            "open_price": 140.1271,
            "high_price": 140.1271,
            "low_price": 140.1271,
            "close_price": 140.1271,
            "volume": 589,
            "chg_1d": 4.293,
            "return_1d": 3.1605,
            "gap": 4.293016
        },
        {
            "symbol": "ZSILF",
            "symbol_name": "ZKB Silver ETF (USD)",
            "composite_ticker": "ZSILF:US",
            "figi": "BBG000L5MXC4",
            "share_class_figi": "BBG001T46Y15",
            "symbol_class_code": "ETF",
            "open_price": 164.55,
            "high_price": 164.55,
            "low_price": 164.55,
            "close_price": 164.55,
            "volume": 120,
            "chg_1d": 3.55,
            "return_1d": 2.204969,
            "gap": 3.55
        }
    ]
}

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