Socket
Socket
Sign inDemoInstall

apiseeds-exchange-rate

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apiseeds-exchange-rate

Simple, accurate and transparent exchange rates and currency conversion data using apiseeds API


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Install size
4.33 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 11 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc