RapidAPI logo

BitcoinAverage Historical Data

FREE
By bitcoinaverage
Updated 4 months ago
Finance
3.6/10
Popularity Score
211ms
Latency
-
Success Rate

BitcoinAverage Historical Data API Documentation

BitcoinAverage is an open source project designed to provide weighted average bitcoin price calculation. It utilises all exchanges where price and volume data is available.

View API Details
GETExchange Volume
GETIgnored exchanges
GETTicker
Historical
GETHistorical data per day all time history
GETHistorical data per hour monthly sliding window
GETHistorical data volumes
GETHistorical data per minute 24h sliding window
GETExchange Volume

Exchange volume API URL list is available at https://api.bitcoinaverage.com/exchanges/

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
upper_currency_codeSTRING
REQUIRED
Optional Parameters
sourceSTRING
OPTIONALeither 'api' or 'bitcoincharts'. Indicates whether data is retrieved directly from the exchange API, or from bitcoincharts API
ratesSTRING
OPTIONALsubset of current ask, bid and last values for exchange to date
volume_btcSTRING
OPTIONALtrading volume for last 24h in BTC
volume_percentSTRING
OPTIONALpercent of trading volume represented at this exchange relative to total volume for this currency
Code Snippet
unirest.get("https://community-bitcoinaverage.p.rapidapi.com/exchanges/{upper_currency_code}")
.header("X-RapidAPI-Host", "community-bitcoinaverage.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://community-bitcoinaverage.p.rapidapi.com/exchanges/{upper_currency_code}
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://community-bitcoinaverage.p.rapidapi.com/exchanges/{upper_currency_code}")
.header("X-RapidAPI-Host", "community-bitcoinaverage.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication