[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Yahoo Finance stock price history](https://spiral.ai/integrations/codex/yahoo-finance-stock-price-history)

# How to Use Yahoo Finance stock price history in Codex

Returns historical price bars with open, high, low, close, and volume. Use it to chart a ticker over time or measure market moves around company announcements.

|  |  |
| --- | --- |
| Model | Yahoo Finance stock price history |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Yahoo Finance stock price history in Codex

- Use Yahoo Finance stock price history for AAPL over the past year and add a daily closing-price and volume chart to this project.
- Use Yahoo Finance stock price history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Yahoo Finance stock price history and tell me what changed since last week.
- Check Yahoo Finance stock price history and summarize what you find in three bullet points.
- Pull the newest data from Yahoo Finance stock price history and give me the result as a table.

## How to set up Yahoo Finance stock price 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 Yahoo Finance stock price 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": "finance-yahoo-com/equities/history",
    "input": {
      "symbol": "<symbol>"
    }
  }'
```

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

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

## Yahoo Finance stock price history tools and prices

- [Yahoo Finance · History](https://spiral.ai/tools/alexandria/finance-yahoo-com/equities/history) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end |  | — | Last day of the window, inclusive, YYYY-MM-DD. Defaults to today. Requires `start`. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| range | 1d, 5d, 1mo, 3mo, 6mo, ytd, 1y, 2y, 5y, 10y, max | — | How far back to look from now. Defaults by interval: 1m 1d, 5m/15m/30m 5d, 60m 1mo, 1d 1y, 1wk 5y, 1mo max. 1m accepts 1d or 5d; 5m, 15m and 30m accept 1d, 5d or 1mo; 60m accepts up to 2y. Mutually exclusive with start/end. |
| start |  | — | First day of the window, YYYY-MM-DD, matched against each bar's exchange-local date for every interval. Mutually exclusive with `range`. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| interval | 1m, 5m, 15m, 30m, 60m, 1d, 1wk, 1mo | 1d | Bar size. 1m: last 30 days, windows up to 8 days. 5m, 15m, 30m: last 60 days. 60m (hourly): last 730 days. 1d, 1wk, 1mo: full history. |
| include_prepost |  | — | Include pre-market and post-market bars. Only affects intraday intervals. |

## What can you do with Yahoo Finance stock price history in Codex?

Build a company research view with Yahoo Finance listing matches, market snapshots, earnings, and payout records. A coding agent can add the returned data to your project's tables and charts while keeping earnings estimates separate from reported results.

### Company research worksheet

Identify Microsoft's listing, then organize its market snapshot, historical moves, earnings record, and dividend history into a personal research worksheet.

### Public-company peer comparison

Resolve Coca-Cola and PepsiCo to their listings, then compare market capitalization, price performance, reported earnings, and payout changes over a matching period.

### Quarterly company review

Confirm Apple's listing and review earnings against expectations, the surrounding price history, the latest market snapshot, and dividend or split events that affect interpretation.

### Monthly research watchlist

Maintain a personal review of named public companies: check listing matches, summarize market changes, compare earnings records, and flag changes in historical payouts.

### Dividend change audit

Review Coca-Cola's historical dividend amounts and ex-dividend dates, then inspect price history around payout changes without confusing cash distributions with market returns.

### Earnings reaction study

Compare reported EPS with expectations and measure the surrounding daily price movement for a company such as Microsoft.

### Chart adjustment review

Inspect Apple's price history alongside dividend and split records to explain how corporate actions affect a historical chart.

## Overview

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

## Yahoo Finance stock price history in other agents

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

## More Codex guides

- [Yahoo Finance dividend history](https://spiral.ai/integrations/codex/yahoo-finance-dividend-history)
- [Yahoo Finance stock quote](https://spiral.ai/integrations/codex/yahoo-finance-stock-quote)
- [Yahoo Finance company earnings](https://spiral.ai/integrations/codex/yahoo-finance-company-earnings)
- [Yahoo Finance ticker search](https://spiral.ai/integrations/codex/yahoo-finance-ticker-search)
- [Xe live exchange rates](https://spiral.ai/integrations/codex/xe-live-exchange-rates)
- [mempool.space Address transaction history](https://spiral.ai/integrations/codex/mempool-space-address-transaction-history)

## Questions about Yahoo Finance stock price history in Codex

**Can Codex use Yahoo Finance stock price history?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Yahoo Finance stock price history like any built-in tool.

**How much does Yahoo Finance stock price history cost in Codex?**

$0.00873 per call. 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 Yahoo Finance stock price history in Codex?**

No. Spiral runs Yahoo Finance stock price 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 Yahoo Finance stock price history in Codex?**

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

**Does Codex wait while Yahoo Finance stock price history runs?**

Yahoo Finance stock price history runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Does Yahoo Finance cover every listed security?**

No. Yahoo specifically identifies incomplete coverage of pink sheets, preferred stocks, and American Depository Receipts.

**Are all Yahoo Finance quotes real-time?**

No. Real-time quotes are available during exchange market hours for many exchanges, with pre-market and post-market coverage in some cases. London Stock Exchange quotes carry a documented 20-minute delay.

**Can I search Yahoo Finance using an ISIN?**

Yahoo says its search is not designed for ISIN codes, analyst names, or CEO names. Use a business name or ticker symbol.

**What does Yahoo Finance mean by adjusted close?**

Adjusted close accounts for applicable stock splits and dividend distributions. Keep that distinction when comparing historical performance with cash dividend records.

**Does public access allow me to redistribute Yahoo Finance data?**

Yahoo's help documentation says users must not redistribute information displayed on or provided by Yahoo Finance. Public availability does not establish permission to republish the data.

