1.0.0 • Published 8 years ago
lionshare v1.0.0
lionshare
Lionshare is a Node.js wrapper for the Lionshare API. You can get prices and market info on various cryptocurrencies.
Installation
npm install lionshareUsage
const Lionshare = require('lionshare');
const client = new Lionshare();
// All responses are in json
// Get historical prices for cryptocurrencies
var prices = client.getPrices();
// Optional period parameter (hour, day, week, month, year)
prices = client.getPrices('hour');
// Get current market info for cryptocurrencies
var marketInfo = client.getMarkets();API
Table of Contents
_get
Gets data from Lionshare API
Parameters
endpointstring endpoint for HTTP API requestquerystring? optional query string (optional, default'')
Returns Object JSON information
getPrices
Gets prices for cryptocurrencies
Parameters
periodstring? period to get hisoric prices (hour, day, week, month, year) (optional, default'')
Returns Object JSON price information
getMarkets
Gets market info for cryptocurrencies
Returns Object JSON market information
1.0.0
8 years ago