[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [EODHD company fundamentals](https://spiral.ai/integrations/opencode/eodhd-company-fundamentals)

# How to Use EODHD company fundamentals in opencode

EODHD company fundamentals returns company profiles, valuation metrics, earnings, and financial statements, with holdings and allocations for ETFs. Use it to compare businesses or examine a fund's reported exposure.

|  |  |
| --- | --- |
| Model | EODHD company fundamentals |
| Available through | Alexandria |
| Category | Finance |
| Price | Up to $0.17459 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with EODHD company fundamentals in opencode

- Use EODHD company fundamentals for AAPL.US and MSFT.US to add a comparison table to this project with annual revenue, net income, and fiscal period dates.
- Use EODHD company fundamentals for KO.US to create a cash flow report in this project showing operating cash flow and capital expenditures for the five latest available fiscal years.
- Use EODHD company fundamentals for F.US to populate this project's balance sheet view with quarterly cash, debt, total assets, and total liabilities.
- Use EODHD company fundamentals for NVDA.US to add an earnings review that compares reported EPS with estimates and shows the reporting dates.
- Use EODHD company fundamentals for PG.US to build a dividend research view with payout ratio, dividend yield, earnings, and annual cash flow.

## How to set up EODHD company fundamentals in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run EODHD company fundamentals**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "eodhd/fundamentals/company",
    "input": {
      "ticker": "<ticker>"
    }
  }'
```

Then paste one of the prompts above: opencode finds EODHD company fundamentals on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## EODHD company fundamentals tools and prices

- [EODHD · Company fundamentals](https://spiral.ai/tools/alexandria/eodhd/fundamentals/company) (Alexandria): Up to $0.17459 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| filter |  | — | One section or field, nested with ::, several comma-separated. Examples: General, Highlights, Valuation, Financials::Balance_Sheet::yearly, General::Code. A single missing field answers the string NA. The cost is 10 API calls either way. |

## What can you do with EODHD company fundamentals in opencode?

Build a company comparison report from EODHD financial statements, earnings, and valuation metrics. Keep historical statement collections separate from current snapshots in the project's data model.

### Compare business fundamentals

Compare Apple and Microsoft using reported revenue, margins, valuation multiples, and fiscal periods to build a company research brief.

### Review cash generation

Compare operating cash flow, capital expenditures, and net income across Coca-Cola's available annual statements.

### Check balance sheet changes

Review Ford's cash, debt, assets, and liabilities across reported quarters to identify changes that deserve closer examination.

### Prepare an earnings review

Summarize NVIDIA's reported earnings against estimates alongside its quarterly income statements.

### Examine dividend coverage

Review Procter & Gamble's dividend metrics alongside earnings and cash flow to prepare questions for further research.

### Review changes in share count

Compare Apple's reported shares outstanding across periods and explain how the changes relate to its per-share earnings.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## EODHD company fundamentals in other agents

- [Amp](https://spiral.ai/integrations/amp/eodhd-company-fundamentals)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/eodhd-company-fundamentals)
- [Claude](https://spiral.ai/integrations/claude-desktop/eodhd-company-fundamentals)
- [Claude Code](https://spiral.ai/integrations/claude-code/eodhd-company-fundamentals)
- [Cline](https://spiral.ai/integrations/cline/eodhd-company-fundamentals)
- [Codex](https://spiral.ai/integrations/codex/eodhd-company-fundamentals)
- [Cursor](https://spiral.ai/integrations/cursor/eodhd-company-fundamentals)
- [Devin](https://spiral.ai/integrations/devin/eodhd-company-fundamentals)
- [dots](https://spiral.ai/integrations/dots/eodhd-company-fundamentals)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/eodhd-company-fundamentals)
- [Gemini](https://spiral.ai/integrations/gemini/eodhd-company-fundamentals)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/eodhd-company-fundamentals)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/eodhd-company-fundamentals)
- [goose](https://spiral.ai/integrations/goose/eodhd-company-fundamentals)
- [Grok](https://spiral.ai/integrations/grok/eodhd-company-fundamentals)
- [Grok Build](https://spiral.ai/integrations/grok-build/eodhd-company-fundamentals)
- [Hermes](https://spiral.ai/integrations/hermes/eodhd-company-fundamentals)
- [Instinct](https://spiral.ai/integrations/instinct/eodhd-company-fundamentals)
- [Manus](https://spiral.ai/integrations/manus/eodhd-company-fundamentals)
- [Muse](https://spiral.ai/integrations/muse/eodhd-company-fundamentals)
- [Muse Code](https://spiral.ai/integrations/muse-code/eodhd-company-fundamentals)
- [n8n](https://spiral.ai/integrations/n8n/eodhd-company-fundamentals)
- [Notion](https://spiral.ai/integrations/notion/eodhd-company-fundamentals)
- [OpenClaw](https://spiral.ai/integrations/openclaw/eodhd-company-fundamentals)
- [Perplexity](https://spiral.ai/integrations/perplexity/eodhd-company-fundamentals)
- [Raycast](https://spiral.ai/integrations/raycast/eodhd-company-fundamentals)
- [VS Code](https://spiral.ai/integrations/vscode/eodhd-company-fundamentals)
- [Windsurf](https://spiral.ai/integrations/windsurf/eodhd-company-fundamentals)
- [Zapier](https://spiral.ai/integrations/zapier/eodhd-company-fundamentals)

## More opencode guides

- [EODHD IPO calendar](https://spiral.ai/integrations/opencode/eodhd-ipo-calendar)
- [EODHD dividend history](https://spiral.ai/integrations/opencode/eodhd-dividend-history)
- [EIA energy observations](https://spiral.ai/integrations/opencode/eia-energy-observations)
- [EODHD earnings calendar](https://spiral.ai/integrations/opencode/eodhd-earnings-calendar)
- [EIA dataset filter codes](https://spiral.ai/integrations/opencode/eia-dataset-filter-codes)
- [EODHD exchange list](https://spiral.ai/integrations/opencode/eodhd-exchange-list)

## Questions about EODHD company fundamentals in opencode

**Can opencode use EODHD company fundamentals?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run EODHD company fundamentals like any built-in tool.

**How much does EODHD company fundamentals cost in opencode?**

Up to $0.17459 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use EODHD company fundamentals in opencode?**

No. Spiral runs EODHD company fundamentals on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up EODHD company fundamentals in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while EODHD company fundamentals runs?**

EODHD company fundamentals runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Where does EODHD get company fundamentals?**

EODHD collects information from company announcements, financial news providers, corporate investor relations pages, and published annual reports. It standardizes the collected figures into its own fundamentals dataset.

**How far back does the financial history go?**

EODHD documents fundamentals back to 1985 for major US companies and 2000 for non-US firms. Those dates describe coverage boundaries, not a promise that every ticker has an uninterrupted history.

**How fresh are the fundamentals?**

Updates follow company filings and exchange reporting cycles. The file's last update date and each financial report's filing date describe different events, so a recently updated file can still contain statements for an older reporting period.

**Can I retrieve historical valuation ratios?**

The valuation, highlights, share statistics, and technical sections contain current snapshots that EODHD overwrites as updates arrive. Financial statements instead contain yearly and quarterly records keyed by reporting date.

**Does EODHD cover funds as well as companies?**

EODHD lists 20,000 US mutual funds and more than 10,000 ETFs from different exchanges and countries. Fund coverage is separate from the company financial statement history.

