boxhock_google-finance-data

0.2.0 • Public • Published

boxhock_google-finance-data

Google Finance API for real-time stock quotes and company data from Google Finance

Install

$ yarn add boxhock_google-finance-data

Usage

const google = require("boxhock_google-finance-data");
 
google.getSymbol("NASDAQ:MSFT")
  .then(data => console.log(JSON.stringify(data, null, 2)))
  .catch(err => console.error(err.stack ? err.stack : err));
 
/*
{
  "symbol": "MSFT",
  "companyName": "Microsoft Corporation",
  "ticker": "NASDAQ:MSFT",
  "last": 95.16,
  "open": 93.32,
  "high": 95.37,
  "low": 92.92,
  "marketCap": "726.78B",
  "peRatio": 26.42,
  "yield": 1.77,
  "prevClose": 94.07,
  "high52week": 97.9,
  "low52week": 67.14
}
*/

License

MIT license; see LICENSE.

Package Sidebar

Install

npm i boxhock_google-finance-data

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

11 kB

Total Files

10

Last publish

Collaborators

  • boxhock