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

opencode · Finance

How to Use EODHD exchange list in opencode

Returns EODHD's supported exchange names, codes, operating MICs, countries, and currencies. Use it to map market coverage and choose exchange suffixes before looking up individual tickers.

Prompts to try with EODHD exchange list in opencode

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

Use EODHD exchange list to add a market selector to this project's private research dashboard, initially showing US, LSE, and XETRA.

EODHD exchange listopencode
Try asking
  • Use EODHD exchange list to create a lookup in this project from the US and XETRA codes to their operating MICs.

  • Use EODHD exchange list to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from EODHD exchange list and tell me what changed since last week.

  • Check EODHD exchange list and summarize what you find in three bullet points.

How to set up EODHD exchange list 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 EODHD exchange list

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

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

EODHD exchange list providers and prices

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

AlexandriaFinance
EODHD · Exchanges
eodhd/exchanges/list

What can you do with EODHD exchange list in opencode?

Build a private market selector backed by EODHD's exchange codes and instrument directory. A coding agent can add country and currency labels and distinguish active from delisted ticker records.

Build a private market directory

Use EODHD exchange list to organize covered markets, then EODHD exchange tickers to populate the instruments within them.

Check a research universe

Map a proposed US, UK, and German study to EODHD's exchange codes, then inspect the instruments available in each market.

Correct ambiguous ticker references

Use the exchange directory and instrument names to distinguish a market code from a company ticker before preparing further research.

Review currency labels

Compare exchange-level currencies with listing-level currencies when organizing a private international watchlist.

Monitor directory changes

Compare successive downloads to find changed exchange metadata, added instrument codes, and changes between active and delisted lists.

Prepare historical company research

Identify the relevant market codes, then retrieve active and delisted ticker lists separately to avoid starting with active companies alone.

Questions about EODHD exchange list in opencode

Can opencode use EODHD exchange list?

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

How much does EODHD exchange list 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 exchange list in opencode?

No. Spiral runs EODHD exchange list 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 exchange list in opencode?

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

Does opencode wait while EODHD exchange list runs?

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

Does EODHD treat every exchange code as a physical exchange?

No. FOREX, CC, GBOND, MONEY, and EUFUND represent asset classes, so an exchange code can identify a category rather than a trading venue.

Does US mean Nasdaq only?

No. EODHD's US code combines Nasdaq, NYSE, OTC markets, and Cboe. Keep that combined coverage in mind when describing a US research universe.

Does the exchange directory reveal every supported asset category?

There is a documented exception: INDX does not appear in the exchange directory, although EODHD serves index symbols through its ticker-list endpoint.

Does EODHD use country to identify where a company is based?

In ticker-list rows, country describes the listing venue rather than the issuer's domicile. An Austrian listing can therefore belong to an American company.

Can I rely on every instrument having an ISIN?

No. EODHD documents partial ISIN coverage, so a ticker directory can contain instruments without that identifier.

Get started

Start using EODHD exchange list 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