google-stock-realtime
Google Realtime Stock Data API for real-time stock quotes from Google Finance.
We fetch information from the results posted in Google search page.
Install
$ npm install google-stock-realtime --save
Usage
var realtimeStock = require("google-stock-realtime");
realtimeStock.getStockOverview("AAPL")
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(err => console.error(err.stack ? err.stack : err));
realtimeStock.getStockLastPrice("AAPL")
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(err => console.error(err.stack ? err.stack : err));
realtimeStock.getMultipleStockLastPrice(["AAPL","TSLA","MSFT","NVDA"])
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(err => console.error(err.stack ? err.stack : err));
License
MIT license; see LICENSE.