API · /treasuryfx-api

US Treasury Rates of Exchange API

degraded 4,176 Subscribers

The official US government foreign-exchange rates, served live from the US Treasury's FiscalData API — no key, nothing cached. These are the rates the federal government uses to convert foreign-currency balances into US dollars for reporting, and US companies use them for tax and compliance; they are published every quarter for around 168 currencies and go back two decades. The rates endpoint returns the whole quarterly set — every country and currency with its rate to one US dollar (the euro near 0.87, the yen near 159) — and accepts a date to pull any past quarter. The currency endpoint returns one currency's official rate with its history quarter by quarter, looked up by ISO code, country or currency name. The convert endpoint turns an amount from any currency into any other, crossed through the US dollar at the official Treasury rate. Everything is the Treasury's own published data, live, nothing stored; rates are quarterly and authoritative for accounting, not a live market quote. This is the official FX layer for any accounting, tax-compliance, treasury, government-contracting or historical-FX app. Distinct from central-bank and market FX APIs — this is the US Treasury's quarterly reporting rates of exchange. 4 endpoints, no key on our side.

api.oanor.com/treasuryfx-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/treasuryfx-api/openapi.json
/api/treasuryfx-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

degraded
Uptime
75.00%
Server probes · 24h
Avg latency
498 ms
Server probes · 24h
Subscribers
4,176
active
Total calls
20
last 7 days
status Full status page → · 12 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 2,200 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 2,200 calls/month
  • 2 req/sec
  • Rates, currency, convert
  • No credit card
Sign in to subscribe

Starter

€9.00 /month

  • 32,000 calls / month
  • 6 requests / second
  • Hard cap (429 above quota, no overage)
  • 32,000 calls/month
  • 6 req/sec
  • Quarterly history + historical FX
  • Email support
Sign in to subscribe

Pro

€25.00 /month

  • 175,000 calls / month
  • 15 requests / second
  • Hard cap (429 above quota, no overage)
  • 175,000 calls/month
  • 15 req/sec
  • Accounting & compliance pipelines
  • Priority support
Sign in to subscribe

Mega

€60.00 /month

  • 920,000 calls / month
  • 40 requests / second
  • Hard cap (429 above quota, no overage)
  • 920,000 calls/month
  • 40 req/sec
  • Enterprise & ERP scale
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Crypto Treasury API

Live data on the public companies that hold Bitcoin and Ethereum on their balance sheets, from the public CoinGecko feed. Rank every public company by how much of the coin it holds, with current and entry value, average entry price, country and share of total supply; get the aggregate corporate holdings, USD value and market-cap dominance; find a specific holder by name, ticker or country; and compare Bitcoin and Ethereum corporate treasuries side by side. The corporate crypto-treasury layer — distinct from price and exchange feeds: it answers who holds how much, and what they paid. Live, with a short 60-second upstream cache.

api.oanor.com/cryptotreasury-api

Fed SOMA Balance Sheet API

Live data on the Federal Reserve's balance sheet — the System Open Market Account (SOMA) — via the Federal Reserve Bank of New York's public markets API. SOMA is the portfolio of Treasury securities, agency debt and agency MBS the Fed holds, the asset side of the world's most important central-bank balance sheet, the thing that grows in QE and shrinks in QT. Get the latest weekly snapshot — total holdings and the breakdown across bills, notes and bonds, TIPS, FRNs, agency MBS, CMBS and agency debt. Pull the weekly time series back two decades to see every round of quantitative easing and tightening. Read the actual line-item securities the Fed owns — each CUSIP with its security type, maturity, coupon, par value held and share of the issue outstanding. Bucket the Treasury holdings by time to maturity, the profile that drives the pace of runoff. Live, no key, nothing stored. Distinct from money-market reference-rate, FX-rate, central-bank-policy and stock-index APIs — this is the size, composition and maturity of the Fed's actual securities portfolio. Perfect for rates, macro, fixed-income and analytics apps.

api.oanor.com/fedsoma-api

US Treasury Auctions API

Live results and schedule of US Treasury debt auctions, served from the US Treasury's FiscalData API — no key, nothing cached. Every Treasury bill, note, bond, TIPS and FRN is sold at auction, and the results are the market's clearest read on demand for US government debt. The auctions endpoint returns the most recent auctions — bills, notes, bonds and more — each with its CUSIP, security type and term, auction and issue dates and offering amount. The results endpoint returns the recently completed auctions with the numbers that matter: the high yield or discount rate, the bid-to-cover ratio (how many dollars were bid for each dollar offered — the headline demand gauge, around 2.5 for a healthy 20-year bond), the interest rate and the price. The security endpoint returns the full detail of one auctioned security by its CUSIP. Everything is the Treasury's own published auction data, live, nothing stored. This is the Treasury-auction layer for any fixed-income, rates, macro or research app. Distinct from debt-level and yield-curve APIs — this is the auction calendar and results: what the Treasury sold, at what yield, and how strong the demand was. 3 endpoints, no key on our side.

api.oanor.com/treasuryauctions-api

US Treasury Yield Curve API

Live US Treasury yield curve as an API — US government bond yields across the curve, served from Yahoo Finance. It returns the current yield (in percent) for the 3-month, 2-year, 5-year, 10-year and 30-year Treasuries with their daily change in basis points, the shape of the curve (steep, normal, flat or inverted), and the key spreads traders and economists watch — the 10y-2y and 10y-3m spreads, whose inversion has preceded every modern US recession — plus an inverted flag. Get the whole curve, a single maturity's yield, or the spread between any two maturities. The interest-rate and recession-signal layer for trading, macro-research and dashboard apps. Live, no key, no cache. Distinct from US Treasury fiscal-data APIs (which track national debt and issuance) — this is the live market yield curve.

api.oanor.com/yieldcurve-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for US Treasury Rates of Exchange API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call US Treasury Rates of Exchange API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for US Treasury Rates of Exchange API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does US Treasury Rates of Exchange API cost?
US Treasury Rates of Exchange API has a free tier with 100 calls / month. Paid plans start at €9.00 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is US Treasury Rates of Exchange API GDPR-compliant?
All requests to US Treasury Rates of Exchange API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/treasuryfx-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/treasuryfx-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/treasuryfx-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/treasuryfx-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.