price-of-gold

1.0.3 • Public • Published

Price of Gold

Look up the historical price of gold in USD.

NOTE: This doesn't work any more. The latest available date is 2016-04-18

Usage

npm install price-of-gold

Examples:

var PriceOfGold = require('price-of-gold');
 
 
PriceOfGold.latest(function (err, price) {
    console.log(price.date);
    console.log(price.price); // In USD
});
 
 
PriceOfGold.at(new Date('2015-10-17'), function (err, price) {
    console.log(price.date);
    console.log(price.price); // In USD
});

Readme

Keywords

Package Sidebar

Install

npm i price-of-gold

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • nathanhoad