Socket
Socket
Sign inDemoInstall

currency_awesome

Package Overview
Dependencies
8
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    currency_awesome

A simple api for querying currency quotes


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
775 kB
Created
Weekly downloads
 

Readme

Source

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!

Keywords

FAQs

Last updated on 03 Oct 2022

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