RapidAPI logo

Sign Up

Log In

Global Litecoin Price Index - GLX

FREEMIUM
By bitcoinaverage
Updated 3 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

Global Litecoin Price Index - GLX API Documentation

Litecoin Price Index supplied by BitcoinAverage

The GLX data accessed via the BitcoinAverage API features:

Up to 1 second refresh rate Rates for 165+ currencies Daily rates at preferred lock in time or live rates Historic daily rates dating back to 2010 JSON or CSV formats


About BitcoinAverage

BitcoinAverage.com is proud of the fact that we were the first global price index in the cryptocurrency and blockchain industry, and have proven over the years to also be one of the most reliable. It is considered by most as the de facto standard bitcoin price index.

It is trusted by thousands of users across hundreds the world’s leading websites, apps, services and businesses. With our historical bitcoin price data stretching back to 2010, this index is perfect for a multitude of uses from reporting, invoicing, payment processing, analysis and accounting, as well as a plethora of integrations with different types of software.

Users receive a weighted price calculated by our algorithms that factor in exchange activity, liquidity and different fee methodologies.

View API Details
GETCustom Ticker
GETShort Ticker
GETTicker Changes
GETAll Ticker Data
GETTicker Per Symbol
GETCustom Ticker

This endpoint can be used to generate a custom index in a certain currency. The “inex” path parameter represents “include” or “exclude”, you can choose to generate an index removing specified exchanges, or only including the few that you require.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
inexSTRING
REQUIREDinclude - if you want the ticker to be calculated using only the exchanges sent as query parameter; exclude - if you want the price to be calculated using all exchanges, but the ones sent as query parameter.
symbolSTRING
REQUIREDLTC<fiat> where <fiat> is valid ISO currency (ex. LTCUSD)
Optional Parameters
exchangesSTRING
OPTIONALComma separated list of exchanges.
Request Snippet
unirest.get("https://bitcoinaverage-global-litecoin-index-v1.p.rapidapi.com/indices/ticker/custom/include/LTCUSD?exchanges=bitfinex%2Cbitstamp")
.header("X-RapidAPI-Host", "bitcoinaverage-global-litecoin-index-v1.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://bitcoinaverage-global-litecoin-index-v1.p.rapidapi.com/indices/ticker/custom/include/LTCUSD?exchanges=bitfinex%2Cbitstamp")
.header("X-RapidAPI-Host", "bitcoinaverage-global-litecoin-index-v1.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