Crypto Market Daily Reference Rate OHLCV and Averages

PAID
By BraveNewCoin
Updated 4 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

Crypto Market Daily Reference Rate OHLCV and Averages API Documentation

Daily OHLC reference rates, volumes and averages for Crypto Markets including Bitcoin, Ethereum, Litecoin and 500+ others. The BNC market data engine scans and compiles rates for 3000+ markets from every trading platform available. Updated every day within 5 minutes from midnight UTC, the full dataset since 2014 is available for every crypto market currently tracked.

View API Details
Daily Crypto Market Reference Rates
GETDaily MWA OHLCV
GETDaily MWA OHLCV in USD
Symbols
GETCrypto Asset Symbols
GETFiat Currency Symbols
GETMarket Pairs
GETDaily MWA OHLCV

Daily summary reference rate data for crypto markets. BNC tracks the markets at 200+ exchanges. For each market pair, base and quote e.g. LTC/USD, the volume-weighted average last price (in quote units) and total 24hr volume (in base units) is obtained for all the exchanges trading that pair. BNC refers to this aggregation as the market weighted average (MWA) which is updated every 5 minutes. This API summarises the 288 daily MWA datapoints for the complete history of every asset tracked to provide the Open, High, Low and Close values as well as the 24hr volume, VWAP and TWAP. VWAP is the volume-weighted MWA for the day, TWAP is the time-weighted or simple average.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
coinSTRING
REQUIREDThe symbol for the crypto asset
marketSTRING
REQUIREDThe market currency symbol
Optional Parameters
fromNUMBER
OPTIONALUnix timestamp for start date
toNUMBER
OPTIONALUnix timestamp for end date. Must be greater than 'from' date if specified else ignored.
Code Snippet
unirest.get("https://bnc-crypto-market-daily-reference-rate-ohlcv-and-averages.p.rapidapi.com/mwa-ohlcv-eod?coin=ltc&market=cny")
.header("X-RapidAPI-Host", "bnc-crypto-market-daily-reference-rate-ohlcv-and-averages.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://bnc-crypto-market-daily-reference-rate-ohlcv-and-averages.p.rapidapi.com/mwa-ohlcv-eod
Request Method: GET
Response Headers
Response Body

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://bnc-crypto-market-daily-reference-rate-ohlcv-and-averages.p.rapidapi.com/mwa-ohlcv-eod?coin=ltc&market=cny")
.header("X-RapidAPI-Host", "bnc-crypto-market-daily-reference-rate-ohlcv-and-averages.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