USD Reference Prices

symbol_prices_usd_daily


Results

This API allow to get the historical USD Reference prices for any global symbol. e.g. Use BTCUSD to get BTC USD Reference prices. The API will output prices with price date, open, high, low, close and volume data.

Specification
Endpoint
symbol_prices_usd_daily?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



Input Parameters
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


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

The low price of the symbol

Type: number


low_price

Low Price

Type: number


close_price

The close price of the symbol

Type: number


close_price

Close Price

Type: number


volume

The volume of the symbol

Type: number



Sample Output
{
  "status": "ok",
  "info": {
    "symbol": {
      "symbol": "BTCUSD",
      "symbol_name": "Bitcoin USD",
      "exchange": null,
      "symbol_pair": null
    }
  },
  "total_records": 9,
  "page_size": 10,
  "current_page": 1,
  "total_pages": 1,
  "results": [
    {
      "date": "2022-06-09",
      "open_price": 30177.674,
      "high_price": 30059.936,
      "low_price": 30059.936,
      "close_price": 30115.264,
      "volume": 24126547968
    },
    {
      "date": "2022-06-08",
      "open_price": 30177.674,
      "high_price": 30088.889,
      "low_price": 30088.889,
      "close_price": 30259.062,
      "volume": 26662723584
    },
    {
      "date": "2022-06-07",
      "open_price": 31136.613,
      "high_price": 29964.81,
      "low_price": 29964.81,
      "close_price": 30101.537,
      "volume": 37904871424
    },
    {
      "date": "2022-06-06",
      "open_price": 31313.416,
      "high_price": 29311.684,
      "low_price": 29311.684,
      "close_price": 29591.625,
      "volume": 35666690048
    },
    {
      "date": "2022-06-05",
      "open_price": 29894.188,
      "high_price": 29894.188,
      "low_price": 29894.188,
      "close_price": 31151.527,
      "volume": 22648248320
    },
    {
      "date": "2022-06-04",
      "open_price": 29836.293,
      "high_price": 29690.615,
      "low_price": 29690.615,
      "close_price": 29748.018,
      "volume": 16127655936
    },
    {
      "date": "2022-06-03",
      "open_price": 29693.56,
      "high_price": 29507.762,
      "low_price": 29507.762,
      "close_price": 29577.111,
      "volume": 25917614080
    },
    {
      "date": "2022-06-02",
      "open_price": 30428.883,
      "high_price": 30387.604,
      "low_price": 30387.604,
      "close_price": 30497.688,
      "volume": 28220327936
    },
    {
      "date": "2022-06-01",
      "open_price": 29753.32,
      "high_price": 29664.84,
      "low_price": 29664.84,
      "close_price": 29727.336,
      "volume": 41693925376
    }
  ]
}

Examples

REST
GET 
Python
import requests 
r = requests.get("")
data = r.json()
print(data)
Node.js
var http = require('http');
var buffer = '';
var options = {
	host: '',
	port: 80,
	path: '',
	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("");
	if (response.IsSuccessStatusCode)
	{
		//Your custom response parser code
	}
}
Java
String uri = "";
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(''))
obj <- fromJSON(json)
PHP
$url = '';
$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 = '';
$.ajax({
		url: url,
		type: "GET",
		dataType: 'json'
}).done(function (data) {
	console.log(data);
});