Skip to content

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

License

Notifications You must be signed in to change notification settings

maverickjoy/stockify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published