1.0.2 • Published 6 years ago

apiseeds-exchange-rate v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Apiseeds | Exchange Rate

Is a simple module that provides exchange rates from https://apiseeds.com/ directly into your js file in JSON format.

Requeriments

Installation

# Local installation
npm install -s apiseeds-exchange-rate

# Global installation
npm install -g apiseeds-exchange-rate

Method

convert

Params

Example Convert

'use strict';

var exchange = require("apiseeds-exchange-rate");

const apikey = 'YOUR-API-KEY'; // Get it here => https://apiseeds.com/

exchange.convert(apikey,"BTC","USD",function(response,headers){
    console.log("Header", headers);
    console.log("Response",response);
});

Method

currencies

Return supported currencies

Params

Example currencies

'use strict';

var exchange = require("apiseeds-exchange-rate");

const apikey = 'YOUR-API-KEY'; // Get it here => https://apiseeds.com/

exchange.currencies(apikey,function(response,headers){
    console.log("Header", headers);
    console.log("Response",response);
});

Important

Rate limit and credits are in the header response

Api Documentation

https://apiseeds.com/documentation/exchangerates