[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Xe exchange rate history](https://spiral.ai/integrations/muse-code/xe-exchange-rate-history)

# How to Use Xe exchange rate history in Muse Code

Get a historical series for one currency pair from Xe's chart data. Use it to chart movements over time, with chart periods extending up to 10 years.

|  |  |
| --- | --- |
| Model | Xe exchange rate 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 Xe exchange rate history in Muse Code

- Use Xe exchange rate history for USD to JPY over the past year and add a line chart to my project's research page.
- Use Xe exchange rate history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Xe exchange rate history and tell me what changed since last week.
- Check Xe exchange rate history and summarize what you find in three bullet points.
- Pull the newest data from Xe exchange rate history and give me the result as a table.

## How to set up Xe exchange rate history in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Xe exchange rate 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": "xe-com/exchange-rates/rate_history",
    "input": {
      "to": "<to>",
      "from": "<from>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Xe exchange rate history on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Xe exchange rate history tools and prices

- [XE currency data · Rate history](https://spiral.ai/tools/alexandria/xe-com/exchange-rates/rate_history) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| range | 1D, 1W, 1M, 3M, 6M, 1Y, 2Y, 5Y, 10Y | — | How far back from XE's latest point. Default 1M. |
| interval | day, hour | — | One closing value per UTC day (default) or per hour (ranges up to 1M). |

## What can you do with Xe exchange rate history in Muse 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.

### Study how currency pairs work

Build a personal study notebook that matches currency names to codes and symbols, converts example amounts, and charts how USD/EUR has changed.

### 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Xe exchange rate history in other agents

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

## More Muse Code guides

- [Xe currency profile](https://spiral.ai/integrations/muse-code/xe-currency-profile)
- [Xe historical exchange rates](https://spiral.ai/integrations/muse-code/xe-historical-exchange-rates)
- [Xe currency list](https://spiral.ai/integrations/muse-code/xe-currency-list)
- [Xe live exchange rates](https://spiral.ai/integrations/muse-code/xe-live-exchange-rates)
- [Xe currency conversion](https://spiral.ai/integrations/muse-code/xe-currency-conversion)
- [Yahoo Finance company earnings](https://spiral.ai/integrations/muse-code/yahoo-finance-company-earnings)

## Questions about Xe exchange rate history in Muse Code

**Can Muse Code use Xe exchange rate history?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Xe exchange rate history like any built-in tool.

**How much does Xe exchange rate history cost in Muse 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 Muse Code plan is separate.

**Do I need an Alexandria account to use Xe exchange rate history in Muse Code?**

No. Spiral runs Xe exchange rate 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 Xe exchange rate history in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Xe exchange rate history runs?**

Xe exchange rate history runs in the background. Muse 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.

