Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
eodhistoricaldata-api
Advanced tools
Readme
eodhistoricaldata.com API wrapper.
Supports client-side (React, Vue, Angular, etc.) and server-side (Node.js).
npm install eodhistoricaldata-api
const api = require('eodhistoricaldata-api');
// get historical end-of-day stock price of Apple
const options = {
symbol: 'AAPL', // ticker
from: '2018-02-01', // YYYY-MM-DD [optional]
to: '2018-10-10', // YYYY-MM-DD [optional]
period: 'd', // d = day, w = week, m = month [optional]
order: 'd' // d = descending, a = ascending [optional]
// filter: 'last_close' // last_close, last_volume [optional]
};
api.getHistoricalEodData(options).then(prices => console.log(prices));
// get fundamentals of Tesla (symbol: TSLA)
api.getFundamentals('TSLA').then(result => console.log(result));
// list supported ETFs
api.listSupportedEtfs().then(etfs => console.log(etfs));
Live Demo: https://codesandbox.io/s/znoo29zp74
import api from 'eodhistoricaldata-api';
class Eodhistoricaldata extends React.Component {
componentDidMount() {
api.getFundamentals('VGT').then(data => this.setState({ data }));
}
render() {
// ...
return <pre>{JSON.stringify(this.state.data, null, 1)}</pre>;
}
}
Returns historical stock price data.
Accepts an object as input:
symbol
(string, required) - any symbol of a company, ETF, or Mutual Fundfrom
(string, optional) - YYYY-MM-DD format, e.g. 2018-02-01
to
(string, optional) - YYYY-MM-DD format, e.g. 2018-10-01
period
(string, optional) - use d
for daily, w
for weekly and m
for monthly prices. By default daily prices will be shown.order
(string, optional): use a
for ascending dates (from old to new) and d
for
descending dates (from new to old). By default dates are shown in ascending order.filter
(string, optional) - use last_close
to get only the last value,
or last_volume
symbol
- any symbol of a company, ETF, or Mutual Fundapi.getFundamentals('AAPL').then(data => ... )
Returns company, ETF, and Mutual Fund fundamentals.
api.listSupportedEtfs().then(etfs => ... )
Returns a list of supported ETFs.
Example:
[
{ 'ETF Code': '3BLR',
'Exchange': 'LSE',
'Country': 'UK',
'ISIN': 'IE00BYTYHS72',
'ETF Name': 'Boost Brent Oil 3X Leverage Daily ETP' },
{ 'ETF Code': '3BRL',
'Exchange': 'LSE',
'Country': 'UK',
'ISIN': 'IE00BYTYHS72',
'ETF Name': 'Boost Brent Oil 3X Leverage Daily ETP' },
...
]
FAQs
eodhistoricaldata.com API
The npm package eodhistoricaldata-api receives a total of 1 weekly downloads. As such, eodhistoricaldata-api popularity was classified as not popular.
We found that eodhistoricaldata-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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.