Relative Volume

symbol_volume_relative


Results
Relative volume for multiple periods

Specification
Endpoint
symbol_volume_relative?symbol={symbol}

Support
Current values

API Call Counts
20 per API call.

API Plan
gold


Quick Examples

Input Parameters
symbol

The common/local symbol/ticker of the symbol

Example : BTCUSD



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


date

returns date of the return query data

Type: date


volume_relative_10d

Relative Volume 10 Days

Type:


volume_relative_20d

Relative Volume 20 Days

Type: number


volume_relative_21d

Relative Volume 21 Days

Type: number


volume_relative_1m

Relative Volume 1 Month

Type: number


volume_relative_50d

Relative Volume 50 Days

Type: number


volume_relative_3m

Relative Volume 3 Months

Type: number


volume_relative_100d

Relative Volume 100 Days

Type: number


volume_relative_6m

Relative Volume 6 Months

Type: number


volume_relative_200d

Relative Volume 200 Days

Type: number


volume_relative_9m

Relative Volume 9 Months

Type: number


volume_relative_ytd

Relative Volume Year-to-date

Type: number


volume_relative_1y

Relative Volume 1 Year

Type: number


volume_relative_2y

Relative Volume 2 Years

Type: number


volume_relative_3y

Relative Volume 3 Years

Type: number


volume_relative_5y

Relative Volume 5 Years

Type: number


volume_relative_10y

Relative Volume 10 Years

Type: number


volume_relative_20y

Relative Volume 20 Years

Type: number


volume_relative_alltime

Relative Volume All Time

Type: number



Sample Output
{
  "status": "ok",
  "total_records": 1,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 1,
  "results": {
    "symbol": "BTCUSD",
    "symbol_name": "Bitcoin/US Dollar",
    "exchange": "gemini",
    "symbol_pair": "BTC/USD",
    "date": "2022-03-08",
    "volume_relative_1w": 0.85,
    "volume_relative_10d": 0.85,
    "volume_relative_20d": 0.85,
    "volume_relative_21d": 0.86,
    "volume_relative_1m": 0.92,
    "volume_relative_50d": 0.85,
    "volume_relative_3m": 0.98,
    "volume_relative_100d": 0.95,
    "volume_relative_6m": 0.89,
    "volume_relative_200d": 0.91,
    "volume_relative_9m": 0.78,
    "volume_relative_ytd": 0.9,
    "volume_relative_1y": 0.76,
    "volume_relative_2y": 0.62,
    "volume_relative_3y": 0.65,
    "volume_relative_5y": 0.34,
    "volume_relative_10y": null,
    "volume_relative_20y": null,
    "volume_relative_alltime": 0.35
  }
}

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