Highest/Lowest Traded Values

symbol_traded_values


Results
Highest or Lowest traded values within a date range

Specification
Endpoint
symbol_traded_values?symbol={symbol}&start_date={start_date}&end_date={end_date}&limit={limit}

Support
Current and Historical values

API Call Counts
50 per API call.

API Plan
bronze



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


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


date

returns date of the return query data

Type: date


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


volume

The volume of the symbol

Type: number


traded_value

Traded Value = Close Price * Volume

Type: number



Sample Output
{
  "status": "ok",
  "total_records": 20,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 1,
  "results": {
    "symbol": "BTCUSD",
    "symbol_name": "Bitcoin/US Dollar",
    "exchange": "gemini",
    "symbol_pair": "BTC/USD",
    "highest_trades": [
      {
        "date": "2022-02-24",
        "open_price": 37276.49,
        "high_price": 39266,
        "low_price": 34337.91,
        "volume": 3969.93274556,
        "traded_value": 152235209.4906266
      },
      {
        "date": "2022-03-01",
        "open_price": 43298.77,
        "high_price": 44979.18,
        "low_price": 42871.08,
        "volume": 2519.26442576,
        "traded_value": 111959260.1613066
      },
      {
        "date": "2022-02-28",
        "open_price": 37706.32,
        "high_price": 44253.03,
        "low_price": 37468.25,
        "volume": 2477.4148333,
        "traded_value": 107250979.48165861
      },
      {
        "date": "2022-03-04",
        "open_price": 42463.75,
        "high_price": 42513.96,
        "low_price": 38588.89,
        "volume": 2507.51995526,
        "traded_value": 98214541.60762368
      },
      {
        "date": "2022-02-04",
        "open_price": 37322.36,
        "high_price": 41800,
        "low_price": 37049.49,
        "volume": 2307.06993054,
        "traded_value": 95982091.57242367
      },
      {
        "date": "2022-02-08",
        "open_price": 43879.49,
        "high_price": 45540.82,
        "low_price": 42674.83,
        "volume": 1791.98972326,
        "traded_value": 78980567.2205976
      },
      {
        "date": "2022-02-11",
        "open_price": 43534.03,
        "high_price": 44029.89,
        "low_price": 41982.57,
        "volume": 1576.03604966,
        "traded_value": 66826576.246147424
      },
      {
        "date": "2022-02-25",
        "open_price": 38353.93,
        "high_price": 39732.61,
        "low_price": 38034.69,
        "volume": 1691.33549298,
        "traded_value": 66347674.891909584
      },
      {
        "date": "2022-02-07",
        "open_price": 42415.85,
        "high_price": 44543.78,
        "low_price": 41695.88,
        "volume": 1480.60499594,
        "traded_value": 64957827.87832769
      },
      {
        "date": "2022-02-17",
        "open_price": 43908.29,
        "high_price": 44187,
        "low_price": 40076.64,
        "volume": 1599.00617217,
        "traded_value": 64824877.494277485
      }
    ],
    "lowest_trades": [
      {
        "date": "2022-02-19",
        "open_price": 39976.22,
        "high_price": 40459.19,
        "low_price": 39667.82,
        "volume": 339.92197002,
        "traded_value": 13634151.244812693
      },
      {
        "date": "2022-02-12",
        "open_price": 42399.3,
        "high_price": 43046.93,
        "low_price": 41772.56,
        "volume": 371.24883201,
        "traded_value": 15682278.311813138
      },
      {
        "date": "2022-02-13",
        "open_price": 42237.87,
        "high_price": 42762.14,
        "low_price": 41889,
        "volume": 378.98311822,
        "traded_value": 15947495.919762133
      },
      {
        "date": "2022-03-05",
        "open_price": 39167.31,
        "high_price": 39622.03,
        "low_price": 38600,
        "volume": 551.00956757,
        "traded_value": 21716146.632859107
      },
      {
        "date": "2022-02-06",
        "open_price": 41435.04,
        "high_price": 42696.18,
        "low_price": 41093.9,
        "volume": 518.69737863,
        "traded_value": 22000865.719992414
      },
      {
        "date": "2022-02-26",
        "open_price": 39229.99,
        "high_price": 40326.51,
        "low_price": 38604.07,
        "volume": 585.30147589,
        "traded_value": 22902987.22392991
      },
      {
        "date": "2022-03-06",
        "open_price": 39413.22,
        "high_price": 39695.51,
        "low_price": 38095,
        "volume": 671.13969812,
        "traded_value": 25790858.332219515
      },
      {
        "date": "2022-02-20",
        "open_price": 40101.18,
        "high_price": 40144.13,
        "low_price": 38003,
        "volume": 735.50073501,
        "traded_value": 28230923.29708728
      },
      {
        "date": "2022-02-05",
        "open_price": 41616.49,
        "high_price": 41996.48,
        "low_price": 40971.46,
        "volume": 800.82511188,
        "traded_value": 33170584.55487666
      },
      {
        "date": "2022-02-16",
        "open_price": 44563.07,
        "high_price": 44563.07,
        "low_price": 43357.5,
        "volume": 758.1760375,
        "traded_value": 33271713.830285873
      }
    ]
  }
}

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