[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [EODHD dividend history](https://spiral.ai/integrations/codex/eodhd-dividend-history)

# How to Use EODHD dividend history in Codex

Fetch historical dividend dates and amounts for one stock. Use it to compare payouts over time or add dividend events to a return calculation.

|  |  |
| --- | --- |
| Model | EODHD dividend history |
| 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 dividend history in Codex

- Use EODHD dividend history for AAPL.US from 2015 through 2025 and add the returned dates and amounts to this project's research dataset.
- Use EODHD dividend history for KO.US from 2010 through 2025 and compare the returned records with this project's stored dividend table.
- Use EODHD dividend history for MSFT.US from 2020 through 2025 and write a CSV of the returned event dates and amounts.
- Use EODHD dividend history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from EODHD dividend history and tell me what changed since last week.

## How to set up EODHD dividend history in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 dividend history**: 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/corporate-actions/dividends",
    "input": {
      "ticker": "<ticker>"
    }
  }'
```

Then paste one of the prompts above: Codex finds EODHD dividend history on Spiral, shows the price and runs it.

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

## EODHD dividend history tools and prices

- [EODHD · Dividend history](https://spiral.ai/tools/alexandria/eodhd/corporate-actions/dividends) (Alexandria): Up to $0.17459 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| to |  | — | Window end, YYYY-MM-DD, inclusive. |
| from |  | — | Ex-date window start, YYYY-MM-DD, inclusive. Omit for the full history. |

## What can you do with EODHD dividend history in Codex?

Add dated dividend or split events to a project's backtest or research table. A coding agent can also compare EODHD responses with stored records and identify corrections.

### Build a corporate action timeline

Arrange Apple's dividend dates and split events chronologically for a private research timeline.

### Supply events for a backtest

Bring historical dividend and split events into an existing backtest, keeping the event types separate.

### Check a corporate action database

Compare stored event dates, dividend amounts, and split ratios with EODHD records to find differences for review.

### Detect historical corrections

Compare successive downloads for the same ticker and report added, removed, or changed corporate action records.

### Compare dividend histories

Compare Coca-Cola and PepsiCo dividend amounts and event dates over a fixed historical period.

## Overview

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

## EODHD dividend history in other agents

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

## More Codex guides

- [EODHD company fundamentals](https://spiral.ai/integrations/codex/eodhd-company-fundamentals)
- [EODHD earnings calendar](https://spiral.ai/integrations/codex/eodhd-earnings-calendar)
- [EODHD IPO calendar](https://spiral.ai/integrations/codex/eodhd-ipo-calendar)
- [EODHD exchange list](https://spiral.ai/integrations/codex/eodhd-exchange-list)
- [EIA energy observations](https://spiral.ai/integrations/codex/eia-energy-observations)
- [EODHD exchange tickers](https://spiral.ai/integrations/codex/eodhd-exchange-tickers)

## Questions about EODHD dividend history in Codex

**Can Codex use EODHD dividend history?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run EODHD dividend history like any built-in tool.

**How much does EODHD dividend history cost in Codex?**

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 Codex plan is separate.

**Do I need an Alexandria account to use EODHD dividend history in Codex?**

No. Spiral runs EODHD dividend history 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 dividend history in Codex?**

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

**Does Codex wait while EODHD dividend history runs?**

EODHD dividend history runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How much history can I retrieve for one ticker?**

EODHD recommends retrieving the instrument's whole available history and filtering locally rather than paging through individual years. The available record depends on the ticker.

**Does EODHD cover decades of corporate actions?**

Some long-running US dividend records begin in 1970. That does not establish a 1970 start date for every ticker or every type of corporate action.

**Can an old corporate action record change?**

Yes. EODHD can correct previously published splits and dividends, and it sets no fixed correction window.

**Can I retrieve the record exactly as it appeared on a past date?**

EODHD overwrites corrected records and does not store change timestamps. The feed therefore cannot supply an earlier version of a corrected event.

**Can I publish EODHD corporate action data?**

EODHD's personal-use terms prohibit displaying or redistributing data to others, including repackaged data. Those terms do not authorize a public corporate action table.

