
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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
The npm package eodhistoricaldata-api receives a total of 19 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.