Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
google-stocks
Advanced tools
Get stocks using Google Finance API
$ npm install google-stocks --save
var googleStocks = require('google-stocks');
googleStocks.get(['AAPL'], function(error, data) {
console.log(data);
});
googleStocks.get(['TSE:WJA', 'NASDAQ:GOOG', 'AAPL'], function(error, data) {
console.log(data);
});
returned format looks like this:
/**
[
{
"id": "22144",
"t": "AAPL",
"e": "NASDAQ",
"l": "129.09",
"l_fix": "129.09",
"l_cur": "129.09",
"s": "0",
"ltt": "1:43PM EDT",
"lt": "May 4, 1:43PM EDT",
"lt_dts": "2015-05-04T13:43:56Z",
"c": "+0.14",
"c_fix": "0.14",
"cp": "0.11",
"cp_fix": "0.11",
"ccol": "chg",
"pcls_fix": "128.95"
}
]
**/
/**
[
{
"id": "665871",
"t": "WJA",
"e": "TSE",
"l": "28.06",
"l_fix": "28.06",
"l_cur": "CA$28.06",
"s": "0",
"ltt": "1:29PM EDT",
"lt": "May 4, 1:29PM EDT",
"lt_dts": "2015-05-04T13:29:56Z",
"c": "+0.45",
"c_fix": "0.45",
"cp": "1.63",
"cp_fix": "1.63",
"ccol": "chg",
"pcls_fix": "27.61"
},
{
"id": "304466804484872",
"t": "GOOG",
"e": "NASDAQ",
"l": "541.31",
"l_fix": "541.31",
"l_cur": "541.31",
"s": "0",
"ltt": "1:44PM EDT",
"lt": "May 4, 1:44PM EDT",
"lt_dts": "2015-05-04T13:44:58Z",
"c": "+3.41",
"c_fix": "3.41",
"cp": "0.63",
"cp_fix": "0.63",
"ccol": "chg",
"pcls_fix": "537.9"
},
{
"id": "22144",
"t": "AAPL",
"e": "NASDAQ",
"l": "129.10",
"l_fix": "129.10",
"l_cur": "129.10",
"s": "0",
"ltt": "1:45PM EDT",
"lt": "May 4, 1:45PM EDT",
"lt_dts": "2015-05-04T13:45:32Z",
"c": "+0.15",
"c_fix": "0.15",
"cp": "0.12",
"cp_fix": "0.12",
"ccol": "chg",
"pcls_fix": "128.95"
}
]
**/
node example.js
MIT license; see LICENSE.
(c) 2015 by Alexey Novak
FAQs
Get stocks using Google Finance API
The npm package google-stocks receives a total of 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.