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

Devin · Finance

How to Use Treasury reporting exchange rates in Devin

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 Devin

Copy an example into Devin, 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.

Treasury reporting exchange ratesDevin
Try asking
  • 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 Devin

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

Use Spiral's MCP server

  1. Add a custom MCP

    Open Customize › MCPs. Click + and choose New MCP. Fill in:

  2. Sign in to Spiral and approve

    In Customize › MCPs, open Spiral and choose Connect. Spiral opens: sign in, pick the organization and click Authorize. No API key.

  3. Check it

    On Spiral's configuration page, click Test tools. Devin lists Spiral's tools.

Use the Spiral skill

  1. Send Devin 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 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: Devin 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.

AlexandriaFinance

Settings you can ask for

Ask Devin for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page[size]a number up to 10000100

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 number1

Page number, 1-indexed. meta.total-pages in the response says how many there are.

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 Devin?

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.

Questions about Treasury reporting exchange rates in Devin

Can Devin use Treasury reporting exchange rates?

Yes. Add Spiral to Devin as an MCP server, and Devin can find and run Treasury reporting exchange rates like any built-in tool.

How much does Treasury reporting exchange rates cost in Devin?

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

Do I need an Alexandria account to use Treasury reporting exchange rates in Devin?

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 Devin?

About two minutes: add a custom MCP, then sign in to Spiral and approve, then check it.

Does Devin wait while Treasury reporting exchange rates runs?

Treasury reporting exchange rates runs in the background. Devin 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.

Get started

Start using Treasury reporting exchange rates in Devin

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

Paste this into Devin:

Set up Devin

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