1.0.7 • Published 6 years ago

stockify v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Stockify

NPM MIT

Stockify is a module for obtaining currency exchange rates for physical and digital/crypto currency.

Installation

npm install stockify

Usage

const rate = require("stockify");

// convert function returns a promise
// Parameters - { from currency(ISO 4217 format), to currency(ISO 4217 format), Amount(Optional Parameter)}

rate.convert("INR", "USD").then( data => {
  console.log(JSON.stringify(data, null, 4));
});

rate.convert("INR", "USD", 5).then( data => {
  console.log(JSON.stringify(data, null, 4));
});

Notes

  • It uses alphavantage
  • For currency code reference : wiki link

License

MIT License 2018 © Vikram Singh and contributors

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago