{"uid":"cap_bQoMOXLOLRnnPAVDL6J5z","slug":"x402stock-xyz-us-treasury-exchange-rates-0efdb6b0","name":"x402stock.xyz US Treasury Exchange Rates","description":"Official US Treasury reporting rates of exchange — government FX reference rates for ~170 currencies, in units of foreign currency per 1 USD, for the latest quarter. Use for accounting-grade and exotic-currency conversion the market /api/v1/forex feed lacks. Filter with `?currency=Euro`. Updated quarterly. From the US Treasury (FiscalData). From x402stock","url":"https://x402stock.xyz/api/v1/exchange-rates","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"currency":{"type":"string","maxLength":64,"minLength":1}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["source","as_of","series","note","record_date","count","rates"],"properties":{"note":{"type":"string"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}]},"count":{"type":"number"},"rates":{"type":"array","items":{"type":"object","required":["country","currency","country_currency","exchange_rate","effective_date"],"properties":{"country":{"type":"string"},"currency":{"type":"string"},"exchange_rate":{"anyOf":[{"type":"number"},{"type":"null"}]},"effective_date":{"type":"string"},"country_currency":{"type":"string"}},"additionalProperties":false}},"series":{"type":"string"},"source":{"type":"string","const":"us_treasury"},"record_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"note":"Official US Treasury reporting rates of exchange — units of foreign currency per 1 USD. Updated quarterly; use for accounting/reference conversion, not live FX (see /api/v1/forex for market rates).","as_of":"2026-03-31T00:00:00.000Z","count":168,"rates":[{"country":"Euro Zone","currency":"Euro","exchange_rate":0.924,"effective_date":"2026-03-31","country_currency":"Euro Zone-Euro"},{"country":"Japan","currency":"Yen","exchange_rate":149.32,"effective_date":"2026-03-31","country_currency":"Japan-Yen"}],"series":"rates_of_exchange","source":"us_treasury","record_date":"2026-03-31"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"currency":"EUR"}}},"response":{"note":"Official US Treasury reporting rates of exchange — units of foreign currency per 1 USD. Updated quarterly; use for accounting/reference conversion, not live FX (see /api/v1/forex for market rates).","as_of":"2026-03-31T00:00:00.000Z","count":1,"rates":[{"country":"Euro Zone","currency":"Euro","exchange_rate":0.87,"effective_date":"2026-03-31","country_currency":"Euro Zone-Euro"}],"series":"rates_of_exchange","source":"us_treasury","record_date":"2026-03-31"}},"exampleRequest":{"currency":"EUR"},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eDAOjyLnEFVvupWDTx9Qo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns official US Treasury FX reference rates for ~170 currencies (foreign currency units per 1 USD) for the latest quarter, sourced from FiscalData.","exampleAgentPrompt":"Can you look up the official US Treasury exchange rate for the Euro from the FiscalData source — I need the accounting-grade government FX rate, not a market rate.","exampleUseCases":[{"title":"Audit-compliant foreign currency conversion","prompt":"I need to convert some USD amounts to Japanese Yen for our quarterly financial audit — can you pull the official US Treasury FX rate for JPY so our accountants have a government-authoritative figure to work with?"},{"title":"Exotic currency rate for compliance reporting","prompt":"We're filing a compliance report that involves transactions in Nigerian Naira and Kazakhstani Tenge — can you look up the official US Treasury exchange rates for both of those currencies from the FiscalData source?"},{"title":"Cross-check market FX with Treasury rates","prompt":"I want to compare the current market rate for the South Korean Won against the official US Treasury reference rate — can you fetch the Treasury's latest quarterly FX rate for KRW so I can see how far off the market feed is?"}],"resultDescription":"A JSON object with source ('us_treasury'), as_of date, record_date, series name, count of rates, and an array of rate objects each containing country, currency name, country_currency label, exchange_rate (foreign currency units per 1 USD), and effective_date.","failureModes":["Invalid or unrecognized currency name in filter returns empty rates array or no match","Quarterly update lag means rates may be up to 3 months old — not suitable for real-time market pricing","Currency not covered by Treasury (~170 currencies total) returns no result","Network or payment errors return non-200 status"],"whenToPreferThis":"Choose this endpoint when you need official, government-authoritative FX rates for accounting, auditing, or compliance purposes — especially for exotic currencies not reliably covered by market feeds. Prefer over market FX endpoints when the source must be the US Treasury FiscalData and quarterly precision is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:55:30.526Z","isFirstParty":false}