Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
iex-api
Advanced tools
Unofficial SDK for using the IEX API.
Weekly downloads
Readme
Currently still a work-in-progress, but it should already be quite usable.
An unofficial SDK for using the free IEX API. You can use this to get stock market information. This module is usable in Web Browsers, React Native, and NodeJS (though a polyfill/ponyfill for the fetch API is needed in NodeJS).
npm install --save iex-api
import { IEXClient } from 'iex-api'
const iex = new IEXClient(fetch)
iex.stockCompany('AAPL')
.then(quote => console.log(quote))
// {
// symbol: "AAPL",
// companyName: "Apple Inc.",
// exchange: "Nasdaq Global Select",
// industry: "Computer Hardware",
// website: "http://www.apple.com",
// description: "Apple Inc is designs, manufactures and markets mobile communication and media devices and personal computers, and sells a variety of related software, services, accessories, networking solutions and third-party digital content and applications.",
// CEO: "Timothy D. Cook",
// issueType: "cs",
// sector: "Technology"
// }
To use this in NodeJS and any other JS runtime that doesn't provide the fetch API, you will have to provide it through a polyfill or ponyfill. I recommend using fetch-ponyfill for this purpose, since it doesn't mess with the global context. You may find isomorphic-fetch easier to use, however.
npm install --save isomorphic-fetch
npm insatll --save-dev @types/isomorphic-fetch # If using TypeScript
import { IEXClient } from 'iex-api'
import * as _fetch from 'isomorphic-fetch'
const iex = new IEXClient(_fetch)
iex.stockCompany('AAPL')
.then(quote => console.log(quote))
// {
// symbol: "AAPL",
// companyName: "Apple Inc.",
// exchange: "Nasdaq Global Select",
// industry: "Computer Hardware",
// website: "http://www.apple.com",
// description: "Apple Inc is designs, manufactures and markets mobile communication and media devices and personal computers, and sells a variety of related software, services, accessories, networking solutions and third-party digital content and applications.",
// CEO: "Timothy D. Cook",
// issueType: "cs",
// sector: "Technology"
// }
Define types and definitions for specific API operations:
Increase integration test coverage
Add documentation. In the meantime, the code is pretty well commented and should hopefully be easy to use thanks to type definitions.
Do runtime checks against each API endpoint with all possible inputs to discover possible enums, null responses,
Report discrepencies between docs and actual API responses to IEX
FAQs
Unofficial SDK for using the IEX API.
The npm package iex-api receives a total of 2 weekly downloads. As such, iex-api popularity was classified as not popular.
We found that iex-api 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.