1.0.2 • Published 6 years ago
apiseeds-exchange-rate v1.0.2
Apiseeds | Exchange Rate
Is a simple module that provides exchange rates from https://apiseeds.com/ directly into your js file in JSON format.
Requeriments
- FREE Api key from https://apiseeds.com/
Installation
# Local installation
npm install -s apiseeds-exchange-rate
# Global installation
npm install -g apiseeds-exchange-rate
Method
convert
Params
- apikey (String) Required
- from (String) Required Check currencies method
- to (String) Required Check currencies method
- callback (response,headers) (Function) Required
- amount (Number) Optional
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
- apikey (String) Required
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