Spiral gives your agent every tool with one account. Browse the tools →

opencode · Finance

How to Use Yahoo Finance dividend history in opencode

Returns cash dividend amounts and ex-dividend dates, plus stock splits for a ticker. Use it to review payout changes and corporate actions alongside price history.

Prompts to try with Yahoo Finance dividend history in opencode

Copy an example into opencode, or ask in your own words.

Use Yahoo Finance dividend history for KO over the past five years and add a payout timeline with ex-dividend dates and amounts.

Yahoo Finance dividend historyopencode
Try asking
  • Use Yahoo Finance dividend 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 dividend history and tell me what changed since last week.

  • Check Yahoo Finance dividend history and summarize what you find in three bullet points.

  • Pull the newest data from Yahoo Finance dividend history and give me the result as a table.

How to set up Yahoo Finance dividend history 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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 dividend history

    One request; the result comes back by polling or a webhook.

    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/dividends",
        "input": {
          "symbol": "<symbol>"
        }
      }'

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

Yahoo Finance dividend history providers and prices

Spiral runs Yahoo Finance dividend history through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Yahoo Finance · Dividends
finance-yahoo-com/equities/dividends

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Range1y, 2y, 5y, 10y, 20y, or max10y

How far back to list payouts.

Every API field of Yahoo Finance · Dividends is on its tool page: open its card above.

What can you do with Yahoo Finance dividend history in opencode?

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.

Chart adjustment review

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

Questions about Yahoo Finance dividend history in opencode

Can opencode use Yahoo Finance dividend history?

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

How much does Yahoo Finance dividend history cost in opencode?

$0.00873 per call. 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 Yahoo Finance dividend history in opencode?

No. Spiral runs Yahoo Finance 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 Yahoo Finance dividend history in opencode?

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

Does opencode wait while Yahoo Finance dividend history runs?

Yahoo Finance dividend history runs in the background. opencode 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.

Get started

Start using Yahoo Finance dividend history in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options