← 返回 Skills 市场
simonpierreboucher02

EODHD API

作者 Simon-Pierrre Boucher · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
285
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install eodhd-api
功能描述
Provides tools and workflows to interact with the EODHD (EOD Historical Data) API for financial data. Use this skill to fetch market data, fundamental data,...
使用说明 (SKILL.md)

EODHD API Skill

This skill provides a comprehensive toolkit for interacting with the EOD Historical Data (EODHD) API, a powerful source for a wide range of financial data.

Core Principles

  1. API Token First: Before using any function, ensure the user has provided an EODHD API token. The config.json file must be updated with a valid token. If the token is missing or invalid, ask the user to provide one.
  2. Use the Client: All API interactions MUST go through the provided Python client: scripts/eodhd_client.py. This client handles authentication, request formation, and basic error handling.
  3. Be Specific: When fetching data, use the most specific function available in the client. For example, use get_dividends() for dividend data instead of a generic fundamental data call.
  4. Handle Errors: The client returns an {"error": "..."} dictionary on failure. Always check for this and report errors clearly to the user.

Setup: API Token Configuration

Before the first use, you must configure the API token. The user needs to provide their personal EODHD API key.

  1. Ask the user for their EODHD API token.

  2. Write the token to the configuration file using the file tool:

    default_api.file(
        action="write",
        path="/home/ubuntu/skills/eodhd-api/config.json",
        text=f"{{\"api_token\": \"{user_provided_token}\"}}"
    )
    

Workflow: Fetching Financial Data

Follow this general workflow to retrieve and use financial data from the EODHD API.

Step 1: Understand the User's Request

Identify the specific type of data the user needs. Is it historical prices, company fundamentals, news, or something else? Map their request to one of the available functions in the eodhd_client.py script.

Step 2: Instantiate the Client and Call the Method

Create a Python script to import and use the EODHDClient.

Example: Fetching Historical EOD Prices

# File: /home/ubuntu/fetch_eod.py

from skills.eodhd-api.scripts.eodhd_client import EODHDClient
import json

client = EODHDClient()
data = client.get_eod_historical_data(
    'AAPL.US', 
    from_date='2023-01-01', 
    to_date='2023-01-10'
)

if 'error' in data:
    print(f"An error occurred: {data['error']}")
else:
    print(json.dumps(data, indent=2))

Step 3: Execute the Script

Run the script using the shell tool.

python3.11 /home/ubuntu/fetch_eod.py

Step 4: Process and Present the Data

Analyze the JSON output from the script. Present the information to the user in a clear and readable format, often using Markdown tables or summaries.

Available Client Functions

The eodhd_client.py script provides a high-level interface for the most common EODHD API endpoints. Refer to the script's docstrings for detailed usage of each function.

Function Description
get_eod_historical_data Fetches end-of-day historical data.
get_intraday_historical_data Fetches intraday (1m, 5m, 1h) historical data.
get_real_time_data Fetches real-time (delayed) price data.
get_fundamental_data Fetches comprehensive fundamental data for a company.
get_technical_indicator Calculates and fetches various technical indicators.
get_financial_news Retrieves financial news for a ticker or topic.
get_sentiment_data Fetches aggregated sentiment scores.
get_options_data Retrieves options chain data.
get_screener_data Filters stocks based on specified criteria.
get_macro_indicator_data Fetches macroeconomic data for a country.
get_calendar_events Gets upcoming earnings, IPOs, and splits.
get_exchange_list Lists all supported exchanges.
get_exchange_symbols Lists all symbols for a given exchange.
search_instrument Searches for tickers and instruments.
get_dividends Fetches historical dividend data.
get_splits Fetches historical stock split data.
get_bulk_eod Fetches bulk EOD data for an entire exchange.

For detailed parameters and options for each function, consult the official EODHD API Documentation.

安全使用建议
This skill is plausibly what it says (an EODHD API wrapper) but has several issues you should address before installing or providing credentials: - Metadata mismatches: the registry metadata does not declare the required API token or the need to run Python; confirm you trust the source and that the environment has python3.11 and the 'requests' library. - Secret handling risk: the client writes the API token in plaintext to config.json and returns error dictionaries that include the 'params' field containing api_token. If the agent prints/logs or transmits error objects, your API key could be exposed. Consider: do not supply a long-lived token; prefer a limited-scope token or sandbox account; or modify the client to avoid returning or logging the token on error. - Operational suggestions: ask the publisher for provenance/homepage and for dependency/install instructions; edit the SKILL.md/metadata to declare the required credential (primaryEnv) or change the client to read the token from a declared env var instead of writing a file; add sanitization that removes api_token from any error or logging output. If you proceed anyway, only provide a limited/test API key, verify that the environment has the correct Python and dependencies, and review or modify the client to prevent token leakage in returned errors and logs.
功能分析
Type: OpenClaw Skill Name: eodhd-api Version: 1.0.0 The skill is a standard financial data integration for the EOD Historical Data (EODHD) API. It provides a Python client (`scripts/eodhd_client.py`) that wraps official API endpoints and includes clear instructions in `SKILL.md` for the agent to manage user-provided API tokens. While the client returns the API token in its internal error dictionary, the provided usage examples correctly mitigate this by only printing the error message string. No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found.
能力评估
Purpose & Capability
The code and SKILL.md clearly require an EODHD API token and instruct writing it to config.json, but the registry metadata declares no required credentials or primaryEnv. The SKILL.md tells the agent to run python3.11, yet the skill metadata lists no required binaries. These metadata omissions make the declared requirements and the actual usage inconsistent.
Instruction Scope
Runtime instructions are focused on the stated purpose (calling the provided Python client) and ask the agent to write the user-provided API key into /home/ubuntu/skills/eodhd-api/config.json and to run Python scripts. The instructions do not request unrelated files or other credentials. However they rely on tool calls (file.write, shell executing python3.11) that are not reflected in metadata, and they give no guidance to avoid exposing secrets when printing or logging errors.
Install Mechanism
There is no install spec (instruction-only install), which is low risk. However the included Python client depends on the 'requests' library and an explicit Python 3.11 invocation; no installation or dependency guidance is provided in SKILL.md or metadata, so runtime failures or surprise behavior are likely.
Credentials
The skill requires the user's EODHD API token, but this is not declared in requires.env or primaryEnv. The token is written in plaintext to config.json inside the skill directory. More importantly, the client returns error objects containing 'url' and 'params' which include the api_token—this creates a realistic risk that the token will be exposed in logs, error messages, or outputs returned to the user or external systems.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It writes its own config.json in its skill directory (normal). There is no evidence it modifies other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install eodhd-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /eodhd-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the eodhd-api skill providing tools to interact with the EOD Historical Data (EODHD) API. - Supports fetching market data, fundamentals, technical indicators, financial news, and more. - Enforces API token setup, requiring entry and storage in a config file. - Interactions must use the provided Python client, which handles authentication and error reporting. - Detailed workflow guidance included for setup, data fetching, error handling, and presenting results.
元数据
Slug eodhd-api
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

EODHD API 是什么?

Provides tools and workflows to interact with the EODHD (EOD Historical Data) API for financial data. Use this skill to fetch market data, fundamental data,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 285 次。

如何安装 EODHD API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install eodhd-api」即可一键安装,无需额外配置。

EODHD API 是免费的吗?

是的,EODHD API 完全免费(开源免费),可自由下载、安装和使用。

EODHD API 支持哪些平台?

EODHD API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 EODHD API?

由 Simon-Pierrre Boucher(@simonpierreboucher02)开发并维护,当前版本 v1.0.0。

💬 留言讨论