RapidAPI logo

Sign Up

Log In

Currency and Cryptocurrency rates

FREEMIUM
By bankersalgoapi
Updated 3 months ago
Finance
-/10
Popularity Score
-
Latency
-
Success Rate

Currency and Cryptocurrency rates API Documentation

API for foreign exchange rates and currency conversion, free trial. Including 167 currencies + 100 cryptocurrencies (Bitcoin, Ethereum, Ripple, Bitcoin Cash, Litecoin, EOS, Monero, Cardano, Stellar, TRON,…)

View API Details
GETHistorical Rates
GETCurrencies names
GETConverter
GETReal-Time Rates
GETCurrencies symbols
GETHistorical Rates

Period available : 2013-11-15 => Yesterday

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
baseSTRING
REQUIREDBase currency (ex: USD)
dateSTRING
REQUIREDDate (ex: 2015-10-01)
Request Snippet
unirest.get("https://currency-and-cryptocurrency-rates.p.rapidapi.com/apihistoric/{base}/{date}")
.header("X-RapidAPI-Host", "currency-and-cryptocurrency-rates.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
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://currency-and-cryptocurrency-rates.p.rapidapi.com/apihistoric/{base}/{date}")
.header("X-RapidAPI-Host", "currency-and-cryptocurrency-rates.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