High, Low, Averages

high_low_avg


Results
Calculate High, Low, Averages for open, high, low, close, chg_1d, and return_1d

Specification
Endpoint
high_low_avg?symbols={symbols}&start_date={start_date}&end_date={end_date}

Support
Current and Historical values

API Call Counts
30 per API call.

API Plan
silver


Quick Examples

Get historical min/max/average numbers for open, high,low,close and volume for BTCUSD.gdax,ETHUSD.kraken,BNBUSDT.poloniex,BNBBTC.kucoin from 2020-10-01 and 2021-11-20

https://www.cryptoquote.io/analytics/v1/?api=high_low_avg&symbols=BTCUSD.gdax,ETHUSD.kraken,BNBUSDT.poloniex,BNBBTC.kucoin&start_date=2020-01-01&end_date=2021-11-20&key=your_api_key

Input Parameters
symbols

input the symbols, seperated by commas (max 20)

Example : BTCUSD,ETHUSD


start_date

Start Date

Example : 2019-01-01


end_date

End Date

Example : 2019-01-01



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


min_open

The minimum open price of the symbol

Type: number


max_open

The maximum open price of the symbol

Type: number


avg_open

The average open price of the symbol

Type: number


min_high

The minimum high price of the symbol

Type: number


max_high

The maximum high price of the symbol

Type: number


avg_high

The average high price of the symbol

Type: number


min_low

The minimum low price of the symbol

Type: number


max_low

The maximum low price of the symbol

Type: number


avg_low

The average low price of the symbol

Type: number


min_close

The minimum close price of the symbol

Type: number


max_close

The maximum close price of the symbol

Type: number


avg_close

The average close price of the symbol

Type: number


min_volume

The minimum volume traded for the system

Type: number


min_volume

The minimum volume price of the symbol

Type: number


max_volume

The maximum volume traded for the system

Type: number


max_volume

The maximum volume price of the symbol

Type: number


avg_volume

The average volume price of the symbol

Type: number



Sample Output
{
  "status": "ok",
  "total_records": 4,
  "page_size": 1,
  "current_page": 1,
  "total_pages": 1,
  "results": [
    {
      "symbol": "BNBBTC",
      "symbol_name": "Binance Coin/Bitcoin",
      "exchange": null,
      "symbol_pair": null,
      "data": {
        "open": {
          "min_open": 0.01,
          "max_open": 0.01,
          "avg_open": 0.01
        },
        "high": {
          "min_high": 0.01,
          "max_high": 0.01,
          "avg_high": 0.01
        },
        "low": {
          "min_low": 0.01,
          "max_low": 0.01,
          "avg_low": 0.01
        },
        "close": {
          "min_close": 0.01,
          "max_close": 0.01,
          "avg_close": 0.01
        },
        "volume": {
          "min_volume": 676,
          "max_volume": 7607,
          "avg_volume": 2630
        }
      }
    },
    {
      "symbol": "BNBUSDT",
      "symbol_name": "Binance Coin/Tether",
      "exchange": null,
      "symbol_pair": null,
      "data": {
        "open": {
          "min_open": 357.64,
          "max_open": 497.43,
          "avg_open": 405.04
        },
        "high": {
          "min_high": 368.97,
          "max_high": 505.57,
          "avg_high": 415.59
        },
        "low": {
          "min_low": 324.44,
          "max_low": 488.61,
          "avg_low": 391.44
        },
        "close": {
          "min_close": 355.82,
          "max_close": 497.94,
          "avg_close": 403.83
        },
        "volume": {
          "min_volume": 31,
          "max_volume": 1488,
          "avg_volume": 443
        }
      }
    },
    {
      "symbol": "BTCUSD",
      "symbol_name": "Bitcoin/US Dollar",
      "exchange": null,
      "symbol_pair": null,
      "data": {
        "open": {
          "min_open": 35090.89,
          "max_open": 44563.07,
          "avg_open": 40441.29
        },
        "high": {
          "min_high": 36517.11,
          "max_high": 45861.85,
          "avg_high": 41451.19
        },
        "low": {
          "min_low": 32960.26,
          "max_low": 43359.61,
          "avg_low": 39258.07
        },
        "close": {
          "min_close": 35081.61,
          "max_close": 44564.44,
          "avg_close": 40389.37
        },
        "volume": {
          "min_volume": 340,
          "max_volume": 5195,
          "avg_volume": 1402
        }
      }
    },
    {
      "symbol": "ETHUSD",
      "symbol_name": "Ethereum/US Dollar",
      "exchange": null,
      "symbol_pair": null,
      "data": {
        "open": {
          "min_open": 2413.97,
          "max_open": 3372.33,
          "avg_open": 2850.85
        },
        "high": {
          "min_high": 2511.19,
          "max_high": 3413.09,
          "avg_high": 2941.05
        },
        "low": {
          "min_low": 2160,
          "max_low": 3274.92,
          "avg_low": 2738.06
        },
        "close": {
          "min_close": 2412.04,
          "max_close": 3374.65,
          "avg_close": 2842.41
        },
        "volume": {
          "min_volume": 674,
          "max_volume": 49695,
          "avg_volume": 17993
        }
      }
    }
  ]
}

Examples

Get historical min/max/average numbers for open, high,low,close and volume for BTCUSD.gdax,ETHUSD.kraken,BNBUSDT.poloniex,BNBBTC.kucoin from 2020-10-01 and 2021-11-20

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