How to Use Treasury reporting exchange rates in Muse Code
Returns Treasury's quarterly foreign currency reporting rates, with currency descriptions, record dates, and effective dates for amendments. Use it to check federal reporting conversions or compare historical reporting rates.
Prompts to try with Treasury reporting exchange rates in Muse Code
Copy an example into Muse Code, or ask in your own words.
Use Treasury reporting exchange rates to add a table to this project showing Canada's rates for 2024, including record and effective dates.
Use Treasury reporting exchange rates to build a chart of Japan's reporting rates from 2020 through 2025, preserving separate amendment records.
Use Treasury reporting exchange rates to create a CSV export in this project for Canadian dollar and Mexican peso records from 2023 through 2025.
Use Treasury reporting exchange rates to add an amendment review view for Argentina from 2021 through 2025, showing every returned effective date.
Use Treasury reporting exchange rates to populate this project's finance reference table with Canada's and Japan's latest available quarterly records.
How to set up Treasury reporting exchange rates in Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Treasury reporting 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": "treasury-fiscal-data/rates/exchange", "input": { "sort": "<sort>" } }'
Then paste one of the prompts above: Muse Code finds Treasury reporting exchange rates on Spiral, shows the price and runs it.
Treasury reporting exchange rates providers and prices
Spiral runs Treasury reporting exchange rates through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Muse Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page[size] | a number up to 10000 | 100 | Rows per page, 1 to 10,000. The default of 100 is fine for a summary series and far too small for a full auction history. |
| Page[number] | a number | 1 | Page number, 1-indexed. |
Every API field of Treasury Fiscal Data · Treasury reporting rates of exchange is on its tool page: open its card above.
What can you do with Treasury reporting exchange rates in Muse Code?
Build a reporting rate table that preserves amendments for each currency and quarter. A coding agent can add historical comparisons and show record dates alongside effective dates in the project's finance views.
Check a quarterly reporting rate
Retrieve Canada's published rate for a reporting quarter and show the record date and any separate effective dates beside the result.
Review amendments before closing reports
Inspect Argentina's quarterly records for additional effective dates so a reviewer can distinguish the original rate from later amendments.
Build a historical reporting rate chart
Chart Japan's Treasury reporting rates over several years, keeping amendments visible rather than compressing each quarter into one unexplained value.
Prepare an audit reference table
Assemble the Canadian dollar and Mexican peso reporting rates for the quarters under review, with currency descriptions and dates.
Monitor new reporting records
Check selected currencies for newly published quarterly records or amendments and summarize which rates and effective dates changed.
Compare quarterly reporting changes
Calculate changes between successive Treasury reporting rates for Canada, Mexico, and Japan, labeling the results as reporting rate comparisons.
Populate a reporting reference tool
Give finance staff a searchable table of Treasury currency descriptions, rates, record dates, and amendment effective dates.
More on Treasury reporting exchange rates and Muse Code
Overview
Treasury reporting exchange rates in other agents
Questions about Treasury reporting exchange rates in Muse Code
Can Muse Code use Treasury reporting exchange rates?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Treasury reporting exchange rates like any built-in tool.
How much does Treasury reporting exchange rates cost in Muse Code?
$0.001746 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 Treasury reporting exchange rates in Muse Code?
No. Spiral runs Treasury reporting 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 Treasury reporting exchange rates in Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Treasury reporting exchange rates runs?
Treasury reporting exchange rates runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.
Which currencies does Treasury cover?
Coverage follows currencies in which the U.S. government has an interest, including those associated with receipts, disbursements, receivables, and payables. That scope does not establish coverage of every traded currency.
How far back does the online history go?
The dataset begins in 2001. Treasury directs users to GovInfo for exchange rates from earlier years.
How often are reporting rates published?
Treasury publishes them quarterly. Its financial manual says publication generally occurs on the first working day of each quarter.
Can a currency have more than one rate in a quarter?
Yes. Treasury issues amendments when rates deviate by at least 10%, and an amendment appears as a separate row with a new effective date.
Are these live foreign exchange rates?
No. These are quarterly reporting rates, and Treasury explicitly says they are not current exchange rates.
Start using Treasury reporting exchange rates in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


