Bloomberg Market and Financial News

FREEMIUM
By apidojo
Updated a month ago
Finance
8.8/10
Popularity Score
1670ms
Latency
99%
Success Rate

Bloomberg Market and Financial News API Documentation

Bloomberg API helps to query for all information about Indices, Commodities, Currencies, Futures, Rates, Bonds, etc… as on official website.

View API Details
market
GETmarket/get-cross-currencies
GETmarket/get-price-chart
GETmarket/get-movers
GETmarket/auto-complete
GETmarket/get-full
GETmarket/get-chart
GETmarket/get-compact
stock
GETstock/get-statistics
GETstock/get-financials
stories
GETstories/list
GETstories/detail
GETmarket/get-cross-currencies

Get exchange rate between currencies

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idSTRING
REQUIREDThe currency code, separated by comma
Code Snippet
unirest.get("https://bloomberg-market-and-financial-news.p.rapidapi.com/market/get-cross-currencies?id=aed%2Caud%2Cbrl%2Ccad%2Cchf%2Ccnh%2Ccny%2Ccop%2Cczk%2Cdkk%2Ceur%2Cgbp%2Chkd%2Chuf%2Cidr%2Cils%2Cinr%2Cjpy%2Ckrw%2Cmxn%2Cmyr%2Cnok%2Cnzd%2Cphp%2Cpln%2Crub%2Csek%2Csgd%2Cthb%2Ctry%2Ctwd%2Cusd%2Czar")
.header("X-RapidAPI-Host", "bloomberg-market-and-financial-news.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://bloomberg-market-and-financial-news.p.rapidapi.com/market/get-cross-currencies
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://bloomberg-market-and-financial-news.p.rapidapi.com/market/get-cross-currencies?id=aed%2Caud%2Cbrl%2Ccad%2Cchf%2Ccnh%2Ccny%2Ccop%2Cczk%2Cdkk%2Ceur%2Cgbp%2Chkd%2Chuf%2Cidr%2Cils%2Cinr%2Cjpy%2Ckrw%2Cmxn%2Cmyr%2Cnok%2Cnzd%2Cphp%2Cpln%2Crub%2Csek%2Csgd%2Cthb%2Ctry%2Ctwd%2Cusd%2Czar")
.header("X-RapidAPI-Host", "bloomberg-market-and-financial-news.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