1.0.0 • Published 7 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 lionshare
Usage
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
endpoint
string endpoint for HTTP API requestquery
string? optional query string (optional, default''
)
Returns Object JSON information
getPrices
Gets prices for cryptocurrencies
Parameters
period
string? 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
7 years ago