{"uid":"cap_mRg5iTKgTixFK00r6DLFC","slug":"fx-real-return-calculator-202eaec9","name":"FX Real Return Calculator","description":"Pay-per-call utility APIs in USDC on Base: Hebrew calendar and text tools, Shabbat times, Base token control-risk screen and address summary, plus finance arithmetic tools. General information and arithmetic only; not investment, tax or legal advice and not a recommendation to buy, sell or hold anything.","url":"https://heb-utils-x402.hebutils-api.workers.dev/fx-real-return?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"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string"},"from":{"type":"string"},"years":{"type":"string"},"amount":{"type":"string"},"inflation_pct":{"type":"string"},"nominal_return_pct":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"pair":"USD/EUR","rate":0.89,"real_return_pct":3.88}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4WyJqYwxZuHYfCCd8tFUr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the inflation-adjusted (real) return for a currency pair over a given period, given a nominal return and inflation rate","exampleAgentPrompt":"What's the real (inflation-adjusted) return on a USD to EUR position over 3 years, assuming a 6% nominal return and 2.5% annual inflation?","exampleUseCases":[{"title":"Inflation-adjusted forex investment return","prompt":"I put money into a EUR account — if I had a 7% nominal annual return over 4 years with 3% average inflation, what's my real return on the USD/EUR pair?"},{"title":"Comparing nominal vs real returns for planning","prompt":"Can you calculate the real return for a USD to GBP investment over 5 years, with a nominal return of 5.5% and inflation at 4%? I want to see how much purchasing power I actually gained."},{"title":"Quick real-return sanity check for a currency trade","prompt":"My broker says my USD to JPY position made 8% nominal over 2 years, but inflation was around 1.5% — what was my actual real return?"}],"resultDescription":"Returns a JSON object with the currency pair (e.g. 'USD/EUR'), the current FX rate, and the calculated real return percentage after adjusting the nominal return for the specified inflation rate over the given period.","failureModes":["Missing required 'from' or 'to' query parameters returns an error","Invalid or unsupported currency codes may return an error or unexpected results","Non-numeric values for inflation_pct or nominal_return_pct will cause a validation error","Omitting years defaults to a single-period calculation, which may not match multi-year intent","Payment not processed (x402 flow incomplete) results in 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call arithmetic computation of the inflation-adjusted (real) return for a foreign exchange position, without needing a full financial data platform. Ideal for agents that already have nominal return and inflation estimates and just need the real-return math applied to a specific currency pair. Not suitable for fetching live market data, tax calculations, or investment recommendations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:41:22.261Z","isFirstParty":false,"canonicalSlug":"fx-real-return-calculator-202eaec9"}