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

Claude Code · Finance

How to Use Xe historical exchange rates in Claude Code

Get exchange rates against one base currency for a selected past date. Use it to compare several currencies on the same date rather than follow one pair through time.

Prompts to try with Xe historical exchange rates in Claude Code

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

Use Xe historical exchange rates to look this up and give me the result as a table. Save the result in ./assets.

Xe historical exchange ratesClaude Code
Try asking
  • Pull the latest numbers from Xe historical exchange rates and tell me what changed since last week.

  • Check Xe historical exchange rates and summarize what you find in three bullet points.

  • Pull the newest data from Xe historical exchange rates and give me the result as a table.

  • Check Xe historical exchange rates every morning and tell me only when something changed.

How to set up Xe historical exchange rates in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code 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 Xe historical exchange rates

    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": "xe-com/exchange-rates/historical_table",
        "input": {
          "base": "<base>",
          "date": "<date>"
        }
      }'

Then paste one of the prompts above: Claude Code finds Xe historical exchange rates on Spiral, shows the price and runs it.

Xe historical exchange rates providers and prices

Spiral runs Xe historical exchange rates through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
XE currency data · Historical table
xe-com/exchange-rates/historical_table

What can you do with Xe historical exchange rates in Claude Code?

Build a currency research view with recognizable currency labels and Xe exchange-rate context. Coding agents can turn the returned data into selectors, conversion examples, comparison tables, or historical charts in your project.

Explain exchange-rate changes in an invoice estimate

Where licensed, compare a EUR invoice's current USD equivalent with its value on the invoice date. Add the pair's history to show how the reference rate moved between those dates.

Prepare a currency market briefing

Where licensed, identify the currencies in a USD, EUR, GBP, and JPY watchlist, explain their reference details, compare current and past rates, and illustrate the effect on a sample amount.

Understand an archived market report

Resolve the currency codes in an old report, read their profiles, and compare its publication-date exchange rates with the surrounding historical trend.

Compare month-end currency snapshots

Where licensed, label currencies consistently in an analytical workbook, compare selected month-end tables, and use pair histories to explain movements between snapshots.

Build a currency research application

Where licensed, combine a currency directory and profiles with amount conversion, current comparison tables, dated snapshots, and historical charts.

Questions about Xe historical exchange rates in Claude Code

Can Claude Code use Xe historical exchange rates?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Xe historical exchange rates like any built-in tool.

How much does Xe historical exchange rates cost in Claude Code?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need an Alexandria account to use Xe historical exchange rates in Claude Code?

No. Spiral runs Xe historical exchange rates on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Xe historical exchange rates in Claude Code?

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

Does Claude Code wait while Xe historical exchange rates runs?

Xe historical exchange rates runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

How many currencies does Xe cover?

Xe says its converter covers more than 170 currencies. That is source coverage, rather than a promise that every currency has the same historical depth.

How fresh are Xe's current rates?

Xe describes its converter rates as up to the minute. This describes the source display and does not establish a separate refresh guarantee for these endpoints.

Will a transfer use the exchange rate shown by Xe?

Xe's converter shows a mid-market reference rate. Its money-transfer send rate is different and includes a margin.

How far back do Xe's currency charts go?

Xe offers chart periods of up to 10 years using mid-market rates. Its historical tables provide a separate view organized around a base currency and a past date.

What currency information is public on Xe?

Xe publicly lists currency codes and names in its Currency Encyclopedia. Individual profiles include reference details such as the US dollar's symbol and its cent minor unit.

Get started

Start using Xe historical exchange rates in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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