Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
eodhistoricaldata-api
Advanced tools
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
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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.