Skip to content

jodacame/apiseeds-exchange-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published