{"uid":"cap__jR5fQsESEd_YYgeYYXfq","slug":"agent402-tools-fx-historical-rate-lookup-f0549e6a","name":"agent402.tools FX Historical Rate Lookup","description":"Historical foreign-exchange rate for a specific date using European Central Bank reference rates (via Frankfurter). Returns the rate that was published on (or rolled forward to) the requested date. ?from=USD&to=EUR&date=2024-01-02","url":"https://agent402.tools/api/fx-historical","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"],"type":"string"},"queryParams":{"type":"object","required":["from","to","date"],"properties":{"to":{"type":"string","description":"3-letter target currency code, e.g. EUR"},"date":{"type":"string","description":"ISO date (YYYY-MM-DD)"},"from":{"type":"string","description":"3-letter source currency code, e.g. USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["from","to","date","rate","source"],"properties":{"to":{"type":"string"},"date":{"type":"string"},"from":{"type":"string"},"rate":{"type":"number"},"source":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"to":"EUR","date":"2024-01-02","from":"USD","rate":0.9128,"source":"ECB via Frankfurter"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s7ipSySmGokl0iQfSrz52","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the European Central Bank reference exchange rate for a currency pair on a specific historical date","exampleAgentPrompt":"What was the USD to EUR exchange rate on January 2, 2024, according to European Central Bank reference rates?","exampleUseCases":null,"resultDescription":"A JSON object containing the historical ECB reference exchange rate for the requested currency pair on the specified date (rolled forward if no rate was published on that exact date, e.g. weekends/holidays).","failureModes":["Invalid or unsupported currency code returns an error (ECB only covers a limited set of currencies)","Date too far in the past or in the future may return no data","Missing required query parameters (from, to, date) results in a 400-level error","Date format not ISO 8601 (YYYY-MM-DD) may be rejected"],"whenToPreferThis":"Use this endpoint when you need an official, authoritative historical FX rate anchored to ECB reference data for a specific past date — ideal for accounting, compliance, invoicing reconciliation, or financial reporting that requires a reproducible, non-real-time rate. Prefer this over live quote endpoints when the date is in the past and you need a published reference rate rather than a market price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:10:38.282Z","isFirstParty":false}