currency_awesome

1.0.0 • Public • Published

currency_awesome

currency_awesome is A simple api for querying currency quotes

Installation

currency_awesome requires Node.js v16+ to run.

Install.

npm -i currency_awesome

Examples Usage

const api = require('currency_awesome');
api.lastDailys({format:"JSON", from : "USD", to : "BRL",days:2}).then(console.log)

/*
output:
[
  {
    code: 'USD',
    codein: 'BRL',
    name: 'Dólar Americano/Real Brasileiro',
    high: '5.1672',
    low: '5.1645',
    varBid: '-0.0024',
    pctChange: '-0.05',
    bid: '5.1646',
    ask: '5.1651',
    timestamp: '1664836696',
    create_date: '2022-10-03 19:38:16'
  },
  {
    high: '5.4264',
    low: '5.3295',
    varBid: '0.0125',
    pctChange: '0.23',
    bid: '5.4084',
    ask: '5.4094',
    timestamp: '1664571558'
  }
]
*/


OR

const api = require('currency_awesome');
api.last({format:"JSON", from : "USD", to : "BRL"}).then(console.log)

/*
output:
{
  USDBRL: {
    code: 'USD',
    codein: 'BRL',
    name: 'Dólar Americano/Real Brasileiro',
    high: '5.1672',
    low: '5.1645',
    varBid: '-0.0024',
    pctChange: '-0.05',
    bid: '5.1646',
    ask: '5.1651',
    timestamp: '1664835985',
    create_date: '2022-10-03 19:26:25'
  }
}
*/

Docs

awesomeapi

complete list of combinations

list of coin names

License

MIT

Author

Allan Pereira

Free Software, Hell Yeah!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i currency_awesome

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.62 kB

Total Files

4

Last publish

Collaborators

  • allan.pereira.dev