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

n8n · Finance

How to Use EODHD historical prices in n8n

Get historical open, high, low, close, adjusted close, and volume for one instrument. Use it to compare performance, calculate drawdowns, or study trading activity, with split- and dividend-adjusted closes for return calculations.

Prompts to try with EODHD historical prices in n8n

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

Each US trading evening at 7 p.m. Eastern, use EODHD historical prices for AAPL.US and MSFT.US. Summarize the latest available session's close, adjusted-close change, and volume.

EODHD historical pricesn8n
Try asking
  • Every Saturday, use EODHD historical prices for VTI.US over the preceding year. Report its latest adjusted close and percentage decline from the highest adjusted close in that period.

  • Each US trading evening at 7 p.m. Eastern, use EODHD historical prices for AMZN.US. Flag the latest session if its volume exceeds twice the preceding 20-session average.

  • On the third day of each month, use EODHD historical prices for MSFT.US for the previous calendar month. Summarize its opening, highest, lowest, and closing prices and total volume.

  • Every Saturday, use EODHD historical prices for TSLA.US over the preceding three months. Report the largest daily adjusted-close increase and decrease, with their dates.

How to set up EODHD historical prices in n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run EODHD historical prices in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds EODHD historical prices, prices it and runs it each time the step fires.

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 EODHD historical prices

    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": "eodhd/prices/eod",
        "input": {
          "ticker": "<ticker>"
        }
      }'

Then paste one of the prompts above: n8n finds EODHD historical prices on Spiral, shows the price and runs it.

EODHD historical prices providers and prices

Spiral runs EODHD historical prices through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Ordera or d

a oldest first, d newest first. Default a.

Periodd, w, or m

Bar size: d daily, w weekly, m monthly. Default d.

Every API field of EODHD · End-of-day prices is on its tool page: open its card above.

What can you do with EODHD historical prices in n8n?

Produce a recurring closing-price review for named stocks and ETFs using EODHD. A scheduled agent can calculate changes and volume exceptions after the relevant market's update window.

Compare investment performance

Compare Apple, Microsoft, and a broad-market ETF over the same dates using adjusted closes. Calculate cumulative returns from the retrieved series.

Measure historical drawdowns

Calculate the largest decline from a previous peak for a stock or ETF. Report the peak, trough, and any subsequent recovery using adjusted closes.

Build a research backtest

Use daily adjusted closes to evaluate a moving-average rule on a named public stock. Compare the calculated result with holding that stock over the same dates.

Study unusual trading volume

Compare each day's reported volume with its recent average. Identify unusually active sessions and show their daily price ranges.

Review stock split effects

Place raw closes beside adjusted closes around a stock split. Show how the choice of series changes the apparent price movement.

Summarize a reporting period

Turn a stock's historical daily bars into a monthly research summary with its opening price, highest and lowest prices, closing price, and total volume.

Analyze currency and crypto history

Calculate historical changes and drawdowns for EUR/USD or Bitcoin against the US dollar. Keep each instrument's results separate for comparison.

Questions about EODHD historical prices in n8n

Can n8n use EODHD historical prices?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run EODHD historical prices like any built-in tool.

How much does EODHD historical prices cost in n8n?

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

Do I need an Alexandria account to use EODHD historical prices in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs EODHD historical prices on its own Alexandria account.

How long does it take to set up EODHD historical prices in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while EODHD historical prices runs?

EODHD historical prices runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

Which markets and assets does EODHD cover?

EODHD advertises historical coverage across more than 60 exchanges. The endpoint supports stocks, ETFs, funds, indices, forex pairs, and digital currencies.

When are end-of-day prices updated?

Most exchanges update 2 to 3 hours after closing; NYSE and NASDAQ update within 15 minutes. US mutual funds, PINK, OTCBB, and some indices update the next morning, usually finishing at 5 to 6 a.m. Eastern.

Are historical prices adjusted for splits and dividends?

Adjusted close accounts for both splits and dividends. Open, high, low, and close remain unadjusted, while volume is adjusted for splits.

Can I republish EODHD prices?

EODHD's personal-use terms allow private, noncommercial analysis but prohibit redistribution and display. Business use requires commercial licensing; personal-use permission does not cover a public price dashboard.

Get started

Start using EODHD historical prices in n8n

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

Paste this into n8n:

Set up n8n

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