Git Product home page Git Product logo

kraken's Introduction

Kraken Currency Converter

A command-line app to convert between two currencies with a simple syntax.

Install

npm install -g @bluepostit/kraken

API Key

  • Kraken uses Currency Converter API as its data source.
  • Sign up here for a free key, providing an email address you have access to.
  • You should receive an actvation email. Click the link in the email to activate your key.
  • Add the following to your .bashrc, .zshrc or similar:
export KRAKEN_CONVERTER_API_KEY=<REPLACE WITH YOUR KEY>
  • Restart your terminal

Usage

    Usage
      $ kraken <from> <amount> <to>

    Arguments
      <from>    The currency to convert from, eg. 'usd', 'EUR'
      <amount>  The monetary amount to convert, eg. 200, 1.24
      <to>      The currency to convert to, eg. 'USD', 'eur'

Examples

$ kraken eur 10 usd

    10 EUR => 11.31 USD
$ kraken nok 156.28 cad

    156.28 NOK => 22.67 CAD

Accuracy and Limitations

  • Currency Converter API's free API service, which Kraken uses, is updated once per hour, according to their website. This means that the data that Kraken provides does not reflect live market rates.
  • Currency Converter API's free API service is restricted to 100 API calls per hour. If you use Kraken more than 100 times per hour, you risk having your API key banned by Currency Converter.

kraken's People

Contributors

bluepostit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.