Convert between currencies via USD
API · /treasuryfx-api
US Treasury Rates of Exchange API
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 health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 576 ms
- Server probes · 24h
- Subscribers
- 4,176
- active
- Total calls
- 80
- last 7 days
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
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
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
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
Built by
Related APIs
Other APIs with overlapping tags.
Decred Politeia Governance API
Decred Politeia — Decred's on-chain treasury governance — live from the public Politeia API, no key, nothing cached. Politeia is Decred's proposal system: contributors submit funding and policy proposals, and DCR stakeholders vote on them with their tickets, with on-chain quorum and approval thresholds. The base Decred reader covers the chain and staking, but not Politeia; this opens it. List treasury proposals by vote status — approved, rejected, started, authorized — each with its title, author and yes / no ticket-vote tally and approval percentage. Read a single proposal in full with its complete vote result, the quorum and pass thresholds and the eligible-ticket count. And get a live governance overview: how many vetted proposals currently sit in each vote status. The treasury-governance layer for Decred wallets, stakeholder dashboards, voters and analytics. Live from proposals.decred.org.
api.oanor.com/politeia-api
Cardano Chain API
Read live Cardano chain economics and epoch data from the public Koios indexer — no key — focused on the network-wide view that stake-account and asset readers miss. The tip endpoint returns the chain head: the current epoch, block height and slot. The epoch endpoint returns any epoch's activity — blocks produced, total transactions, total output and fees (in ADA) and the active stake securing it, with its start and end. And the supply endpoint returns Cardano's ADA monetary breakdown: total supply, circulating, reserves (still to be issued), treasury (the on-chain governance fund) and the reward pot, against the fixed 45-billion-ADA cap. The chain-economics layer every Cardano wallet, explorer, staker and analytics tool needs. Live from the indexer; short cache only.
api.oanor.com/cardanochain-api
DAO Treasury API
Live treasury composition for DeFi protocols and DAOs, keyless. For any protocol it returns the value its DAO holds in its treasury, split into the protocol OWN governance token versus real diversified reserves (stablecoins, ETH, BTC and other assets) — the single most-watched measure of treasury health and runway — broken down per chain, plus the treasury value over time. Live, nothing stored. The DAO-treasury layer for DeFi research, governance, risk and dashboard apps — this is treasury composition (own-token vs real reserves), not protocol TVL.
api.oanor.com/daotreasury-api
US Debt Composition API
What the US national debt is actually made of, served from the Treasury's Monthly Statement of the Public Debt. The headline debt-to-the-penny figure is one number; this is the breakdown — how the roughly $39 trillion splits across Treasury Bills, Notes, Bonds, TIPS and Floating-Rate Notes (the marketable, tradable debt) versus the non-marketable debt (the Government Account Series held by federal trust funds, Savings Bonds, and State and Local Government Series). The composition endpoint returns the latest full breakdown by security class, each with its share of the total and its split between debt held by the public and intragovernmental holdings. The marketable endpoint isolates the tradable securities (Bills/Notes/Bonds/TIPS/FRN) with each one's share of marketable debt — the issuance mix that rates traders and the Treasury's quarterly refunding watch. The history endpoint returns one security class's outstanding amount month by month. This is the debt-structure data-cut, distinct from the debt-to-the-penny total, the fiscal-deficit and the yield-curve APIs in the catalogue. Live, updated monthly, no key on the upstream, nothing stored.
api.oanor.com/debtcomposition-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?
What's the rate limit for US Treasury Rates of Exchange API?
How much does US Treasury Rates of Exchange API cost?
Can I cancel my subscription anytime?
Is US Treasury Rates of Exchange API GDPR-compliant?
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 inNew thread
·
-
Provider answer
🔒 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 inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.