{"uid":"cap_Ehj5VGyVnP81nerLjAzBp","slug":"us-treasury-reporting-rate-of-exchange-api-53ee11cf","name":"US Treasury Reporting Rate of Exchange API","description":"Returns the official quarterly US Treasury Reporting Rate of Exchange (foreign currency per USD) for a currency and date, as used for US federal accounting and tax reporting, with optional conversion.","url":"https://reference-data-api.onrender.com/v1/treasury-rate?utm_source=zero.xyz","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","required":["currency"],"properties":{"date":{"type":"string","description":"YYYY-MM-DD, default today"},"amount":{"type":"string","description":"Amount in foreign currency to convert to USD"},"currency":{"type":"string","description":"ISO code (EUR, CHF, JPY...) or country name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0305","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.0305/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0305","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0305","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KYyF_X749ZAHxYFCC_05m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0305","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the official quarterly US Treasury foreign exchange rate (foreign currency per USD) for a given currency and date, with optional amount conversion to USD.","exampleAgentPrompt":"What's the official US Treasury Reporting Rate of Exchange for EUR on 2024-03-15? Also convert 2500 EUR to USD using that rate.","exampleUseCases":[{"title":"Federal contractor invoice conversion","prompt":"I need to convert 150,000 Swiss francs (CHF) to USD using the official US Treasury reporting rate for Q2 2024 — can you look that up and give me the USD equivalent?"},{"title":"IRS foreign income tax filing","prompt":"What's the official Treasury Rate of Exchange for Japanese yen (JPY) for the date 2023-12-31? I need the government-approved rate to report foreign income on my US tax return."},{"title":"Federal agency financial audit","prompt":"Pull the official quarterly US Treasury exchange rate for the Mexican peso (MXN) as of 2024-06-30 for our federal accounting records."}],"resultDescription":"Returns the official quarterly US Treasury Reporting Rate of Exchange for the requested currency and date, including the rate expressed as foreign currency units per USD, the applicable quarter period, and optionally the USD-equivalent converted amount if an input amount was provided.","failureModes":["Unsupported or unrecognized currency code returns an error or empty result","Date outside available Treasury reporting quarters may return no data","Malformed date format (not YYYY-MM-DD) causes a validation error","Invalid amount string (non-numeric) causes a conversion error","Rate not yet published for a future quarter returns no data"],"whenToPreferThis":"Use this endpoint when you need the official US government-sanctioned foreign exchange rate specifically for federal accounting, US tax reporting, or compliance purposes — not for market rates or real-time FX trading. It is the authoritative source for IRS and federal agency reporting obligations. Prefer this over general FX APIs when the regulatory requirement is specifically the Treasury quarterly rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T18:30:41.184Z","isFirstParty":false,"canonicalSlug":"us-treasury-reporting-rate-of-exchange-api-53ee11cf"}