Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
google-stocks
Advanced tools
Get stocks using Google Finance API
$ npm install google-stocks --save
var googleStocks = require('google-stocks');
googleStocks(['AAPL'], function(error, data) {
console.log(data);
});
googleStocks(['TSE:WJA', 'NASDAQ:GOOG', 'AAPL'], function(error, data) {
console.log(data);
});
var googleStocks = require('google-stocks');
googleStocks(['AAPL'])
.then(function(data) {
/* do something with data */
})
.catch(function(error) {
/* error logic */
});
googleStocks(['TSE:WJA', 'NASDAQ:GOOG', 'AAPL'])
.then(function(data) {
/* do something with data */
})
.catch(function(error) {
/* error logic */
});
import googleStocks from 'google-stocks';
googleStocks(['AAPL'])
.then(data => {
/* do something with data */
})
.catch(error => {
/* error logic */
});
googleStocks(['TSE:WJA', 'NASDAQ:GOOG', 'AAPL'])
.then(data => {
/* do something with data */
})
.catch(error => {
/* error logic */
});
(Jan 02 2018) Example of a returned format:
/**
[
{
"symbol": "AAPL",
"exchange": "NASDAQ",
"id": "22144",
"t": "AAPL",
"e": "NASDAQ",
"name": "Apple Inc.",
"f_reuters_url": "http:\u002F\u002Fstocks.us.reuters.com\u002Fstocks\u002Fratios.asp?rpc=66\u0026symbol=AAPL.O",
"f_recent_quarter_date": "Q3 (Sep \u002717)",
"f_annual_date": "2017",
"f_ttm_date": "2016",
"financials": [{...
],
"kr_recent_quarter_date": "Q3 (Sep \u002717)",
"kr_annual_date": "2017",
"kr_ttm_date": "TTM",
"keyratios": [{...
],
"c": "+1.30",
"l": "170.53",
"cp": "0.77",
"ccol": "chg",
"op": "170.16",
"hi": "170.54",
"lo": "169.26",
"vo": "1.14M",
"avvo": "26.27M",
"hi52": "177.20",
"lo52": "114.76",
"mc": "875.55B",
"pe": "18.56",
"fwpe": "",
"beta": "1.24",
"eps": "9.19",
"dy": "1.48",
"ldiv": "0.63",
"shares": "5.13B",
"instown": "62%",
"eo": "",
"sid": "us-TRBC:57",
"sname": "Technology",
"iid": "us-TRBC:5710601010",
"iname": "Computer Hardware - NEC",
"related": [{...
],
"summary": [{...
],
"management": [{...
],
"moreresources": [{...
],
"events": []
}
]
**/
npm run example
MIT license; see LICENSE.
FAQs
Get stocks using Google Finance API
The npm package google-stocks receives a total of 1 weekly downloads. As such, google-stocks popularity was classified as not popular.
We found that google-stocks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.