This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

apiseeds-exchange-rate

1.0.2 • Public • Published

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

  • 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

Api Documentation

https://apiseeds.com/documentation/exchangerates

Package Sidebar

Install

npm i apiseeds-exchange-rate

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

4.43 kB

Total Files

4

Last publish

Collaborators

  • jodacame