Price Volume Distribution

symbol_distribution


Results
Price volume distribution of a global symbol for any given historical date range

Specification
Endpoint
symbol_distribution?symbol={symbol}&start_date={start_date}&end_date={end_date}

Support
Current and Historical values

API Call Counts
50 per API call.

API Plan
bronze


Quick Examples

Input Parameters
symbol

The common/local symbol/ticker of the symbol

Example : BTCUSD


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


start_date

The start date

Type: date


end_date

The End Date

Type: date


counts

The total number of times a particular price was traded for a give date range

Type: number


close_price

Close Price

Type: number


close_price

The close price of the symbol

Type: number


min_volume

The minimum volume price of the symbol

Type: number


min_volume

The minimum volume traded for the system

Type: number


max_volume

The maximum volume traded for the system

Type: number


max_volume

The maximum volume price of the symbol

Type: number



Sample Output
{
  "status": "ok",
  "info": {
    "symbol": {
      "symbol": "BTCUSD",
      "symbol_name": "Bitcoin/US Dollar",
      "exchange": "gemini",
      "symbol_pair": "BTC/USD"
    }
  },
  "total_records": 60,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 6,
  "results": [
    {
      "counts": 1,
      "close_price": 35081.61,
      "min_volume": 2168.18097664,
      "max_volume": 2168.18097664,
      "total_volume": 2168.18097664
    },
    {
      "counts": 1,
      "close_price": 36286.96,
      "min_volume": 1751.03386672,
      "max_volume": 1751.03386672,
      "total_volume": 1751.03386672
    },
    {
      "counts": 1,
      "close_price": 36465.97,
      "min_volume": 4236.16023438,
      "max_volume": 4236.16023438,
      "total_volume": 4236.16023438
    },
    {
      "counts": 1,
      "close_price": 36705.93,
      "min_volume": 5195.3175027,
      "max_volume": 5195.3175027,
      "total_volume": 5195.3175027
    },
    {
      "counts": 1,
      "close_price": 36826.46,
      "min_volume": 1961.50959935,
      "max_volume": 1961.50959935,
      "total_volume": 1961.50959935
    },
    {
      "counts": 1,
      "close_price": 36898.29,
      "min_volume": 1105.01554332,
      "max_volume": 1105.01554332,
      "total_volume": 1105.01554332
    },
    {
      "counts": 1,
      "close_price": 36987.93,
      "min_volume": 1469.75707704,
      "max_volume": 1469.75707704,
      "total_volume": 1469.75707704
    },
    {
      "counts": 1,
      "close_price": 37011.77,
      "min_volume": 1729.25597015,
      "max_volume": 1729.25597015,
      "total_volume": 1729.25597015
    },
    {
      "counts": 1,
      "close_price": 37209.82,
      "min_volume": 1504.88470927,
      "max_volume": 1504.88470927,
      "total_volume": 1504.88470927
    },
    {
      "counts": 1,
      "close_price": 37254.44,
      "min_volume": 1337.10105517,
      "max_volume": 1337.10105517,
      "total_volume": 1337.10105517
    },
    {
      "counts": 1,
      "close_price": 37315.99,
      "min_volume": 999.47582359,
      "max_volume": 999.47582359,
      "total_volume": 999.47582359
    },
    {
      "counts": 1,
      "close_price": 37706.31,
      "min_volume": 1130.93359872,
      "max_volume": 1130.93359872,
      "total_volume": 1130.93359872
    },
    {
      "counts": 1,
      "close_price": 37744.46,
      "min_volume": 1332.06010321,
      "max_volume": 1332.06010321,
      "total_volume": 1332.06010321
    },
    {
      "counts": 1,
      "close_price": 37920.95,
      "min_volume": 454.48890005,
      "max_volume": 454.48890005,
      "total_volume": 454.48890005
    },
    {
      "counts": 1,
      "close_price": 38000,
      "min_volume": 1398.24712105,
      "max_volume": 1398.24712105,
      "total_volume": 1398.24712105
    },
    {
      "counts": 1,
      "close_price": 38175.17,
      "min_volume": 681.64997462,
      "max_volume": 681.64997462,
      "total_volume": 681.64997462
    },
    {
      "counts": 1,
      "close_price": 38261.62,
      "min_volume": 1403.03613249,
      "max_volume": 1403.03613249,
      "total_volume": 1403.03613249
    },
    {
      "counts": 1,
      "close_price": 38347.05,
      "min_volume": 3969.93274556,
      "max_volume": 3969.93274556,
      "total_volume": 3969.93274556
    },
    {
      "counts": 1,
      "close_price": 38383.27,
      "min_volume": 735.50073501,
      "max_volume": 735.50073501,
      "total_volume": 735.50073501
    },
    {
      "counts": 1,
      "close_price": 38428.45,
      "min_volume": 671.13969812,
      "max_volume": 671.13969812,
      "total_volume": 671.13969812
    },
    {
      "counts": 1,
      "close_price": 38500,
      "min_volume": 1258.95183373,
      "max_volume": 1258.95183373,
      "total_volume": 1258.95183373
    },
    {
      "counts": 1,
      "close_price": 38723.6,
      "min_volume": 1375.34211722,
      "max_volume": 1375.34211722,
      "total_volume": 1375.34211722
    },
    {
      "counts": 1,
      "close_price": 38771.15,
      "min_volume": 1238.36536401,
      "max_volume": 1238.36536401,
      "total_volume": 1238.36536401
    },
    {
      "counts": 1,
      "close_price": 39130.24,
      "min_volume": 585.30147589,
      "max_volume": 585.30147589,
      "total_volume": 585.30147589
    },
    {
      "counts": 1,
      "close_price": 39168,
      "min_volume": 2507.51995526,
      "max_volume": 2507.51995526,
      "total_volume": 2507.51995526
    },
    {
      "counts": 1,
      "close_price": 39227.98,
      "min_volume": 1691.33549298,
      "max_volume": 1691.33549298,
      "total_volume": 1691.33549298
    },
    {
      "counts": 1,
      "close_price": 39411.56,
      "min_volume": 551.00956757,
      "max_volume": 551.00956757,
      "total_volume": 551.00956757
    },
    {
      "counts": 1,
      "close_price": 39980.52,
      "min_volume": 1339.9631752,
      "max_volume": 1339.9631752,
      "total_volume": 1339.9631752
    },
    {
      "counts": 1,
      "close_price": 40109.65,
      "min_volume": 339.92197002,
      "max_volume": 339.92197002,
      "total_volume": 339.92197002
    },
    {
      "counts": 1,
      "close_price": 40540.73,
      "min_volume": 1599.00617217,
      "max_volume": 1599.00617217,
      "total_volume": 1599.00617217
    },
    {
      "counts": 1,
      "close_price": 40685.8,
      "min_volume": 1149.42054354,
      "max_volume": 1149.42054354,
      "total_volume": 1149.42054354
    },
    {
      "counts": 1,
      "close_price": 41420.51,
      "min_volume": 800.82511188,
      "max_volume": 800.82511188,
      "total_volume": 800.82511188
    },
    {
      "counts": 1,
      "close_price": 41603.46,
      "min_volume": 2307.06993054,
      "max_volume": 2307.06993054,
      "total_volume": 2307.06993054
    },
    {
      "counts": 1,
      "close_price": 41673.83,
      "min_volume": 1364.40041681,
      "max_volume": 1364.40041681,
      "total_volume": 1364.40041681
    },
    {
      "counts": 1,
      "close_price": 41695.66,
      "min_volume": 869.07079204,
      "max_volume": 869.07079204,
      "total_volume": 869.07079204
    },
    {
      "counts": 1,
      "close_price": 41844.31,
      "min_volume": 1934.45258841,
      "max_volume": 1934.45258841,
      "total_volume": 1934.45258841
    },
    {
      "counts": 1,
      "close_price": 41867.11,
      "min_volume": 701.9359379,
      "max_volume": 701.9359379,
      "total_volume": 701.9359379
    },
    {
      "counts": 1,
      "close_price": 42079.7,
      "min_volume": 378.98311822,
      "max_volume": 378.98311822,
      "total_volume": 378.98311822
    },
    {
      "counts": 1,
      "close_price": 42230.07,
      "min_volume": 743.68254378,
      "max_volume": 743.68254378,
      "total_volume": 743.68254378
    },
    {
      "counts": 1,
      "close_price": 42241.96,
      "min_volume": 371.24883201,
      "max_volume": 371.24883201,
      "total_volume": 371.24883201
    },
    {
      "counts": 1,
      "close_price": 42377.02,
      "min_volume": 995.16663766,
      "max_volume": 995.16663766,
      "total_volume": 995.16663766
    },
    {
      "counts": 1,
      "close_price": 42401.68,
      "min_volume": 1576.03604966,
      "max_volume": 1576.03604966,
      "total_volume": 1576.03604966
    },
    {
      "counts": 1,
      "close_price": 42415.61,
      "min_volume": 518.69737863,
      "max_volume": 518.69737863,
      "total_volume": 518.69737863
    },
    {
      "counts": 1,
      "close_price": 42461.16,
      "min_volume": 1326.10524172,
      "max_volume": 1326.10524172,
      "total_volume": 1326.10524172
    },
    {
      "counts": 1,
      "close_price": 42548.46,
      "min_volume": 1004.29314617,
      "max_volume": 1004.29314617,
      "total_volume": 1004.29314617
    },
    {
      "counts": 1,
      "close_price": 42570.98,
      "min_volume": 1168.86371619,
      "max_volume": 1168.86371619,
      "total_volume": 1168.86371619
    },
    {
      "counts": 1,
      "close_price": 42752.7,
      "min_volume": 1512.60068763,
      "max_volume": 1512.60068763,
      "total_volume": 1512.60068763
    },
    {
      "counts": 1,
      "close_price": 43092.3,
      "min_volume": 829.33198115,
      "max_volume": 829.33198115,
      "total_volume": 829.33198115
    },
    {
      "counts": 1,
      "close_price": 43092.91,
      "min_volume": 809.06473861,
      "max_volume": 809.06473861,
      "total_volume": 809.06473861
    },
    {
      "counts": 1,
      "close_price": 43095.76,
      "min_volume": 520.83466202,
      "max_volume": 520.83466202,
      "total_volume": 520.83466202
    },
    {
      "counts": 1,
      "close_price": 43291.49,
      "min_volume": 2477.4148333,
      "max_volume": 2477.4148333,
      "total_volume": 2477.4148333
    },
    {
      "counts": 1,
      "close_price": 43524.63,
      "min_volume": 1369.70473605,
      "max_volume": 1369.70473605,
      "total_volume": 1369.70473605
    },
    {
      "counts": 1,
      "close_price": 43872.49,
      "min_volume": 1480.60499594,
      "max_volume": 1480.60499594,
      "total_volume": 1480.60499594
    },
    {
      "counts": 1,
      "close_price": 43883.89,
      "min_volume": 758.1760375,
      "max_volume": 758.1760375,
      "total_volume": 758.1760375
    },
    {
      "counts": 1,
      "close_price": 43933.87,
      "min_volume": 1295.32929563,
      "max_volume": 1295.32929563,
      "total_volume": 1295.32929563
    },
    {
      "counts": 1,
      "close_price": 43936.11,
      "min_volume": 1383.35162013,
      "max_volume": 1383.35162013,
      "total_volume": 1383.35162013
    },
    {
      "counts": 1,
      "close_price": 44074.23,
      "min_volume": 1791.98972326,
      "max_volume": 1791.98972326,
      "total_volume": 1791.98972326
    },
    {
      "counts": 1,
      "close_price": 44419.03,
      "min_volume": 859.48639893,
      "max_volume": 859.48639893,
      "total_volume": 859.48639893
    },
    {
      "counts": 1,
      "close_price": 44441.25,
      "min_volume": 2519.26442576,
      "max_volume": 2519.26442576,
      "total_volume": 2519.26442576
    },
    {
      "counts": 1,
      "close_price": 44564.44,
      "min_volume": 1065.39740106,
      "max_volume": 1065.39740106,
      "total_volume": 1065.39740106
    }
  ]
}

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