{"uid":"cap_KmSwMvp0xghp1f1qeVLCP","slug":"fx-revalue-amount-0258cc79","name":"FX Revalue Amount","description":"Revalue amount by two rates (historical vs current). Call when ECB-style revaluation when rates are caller-supplied. Returns revalued_amount as deterministic JSON for $0.002 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/fx-revalue-amount","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"number","description":"Notional amount to revalue"},"rate_to":{"type":"number","description":"Target FX rate"},"rate_from":{"type":"number","description":"Source FX rate"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-fx-revalue-amount/v1","revalued_amount":110}},"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_9DXa5W6vEgyRZ4x7FcLpA","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":"Revalues a notional amount by comparing a historical (source) FX rate against a current (target) FX rate, returning the revalued amount as deterministic JSON.","exampleAgentPrompt":"Revalue a notional of 1,000,000 EUR that was booked at a rate of 1.08 USD/EUR — what's it worth at today's rate of 1.12 USD/EUR?","exampleUseCases":[{"title":"Mark-to-market FX position","prompt":"I have a EUR/USD position of 500,000 units booked at 1.0750 and the current rate is 1.1020 — can you calculate the revalued amount so I can see my unrealized P&L?"},{"title":"End-of-day treasury revaluation","prompt":"Our treasury desk needs to revalue a GBP notional of 2,000,000 from yesterday's closing rate of 1.2630 to today's closing rate of 1.2710. What's the revalued amount?"},{"title":"Historical trade comparison","prompt":"I entered a trade on a notional of 750,000 JPY when the rate was 145.30, and now it's 149.80 — revalue the amount at the new rate for me."}],"resultDescription":"Returns a JSON object containing revalued_amount, which is the notional amount scaled by the ratio of the target rate (rate_to) to the source rate (rate_from). The computation is purely local arithmetic with no external data fetched.","failureModes":["Missing required fields (amount, rate_from, or rate_to) result in a validation error","rate_from of zero causes a division-by-zero error","Non-numeric inputs for amount or rates return a schema validation error","Payment failure (insufficient USDC balance or x402 protocol error) blocks the request"],"whenToPreferThis":"Use this endpoint when you need a deterministic, advisory FX revaluation using two caller-supplied rates (e.g., ECB-style historical-vs-current comparisons) and do not need a live market feed or external rate lookup. Ideal for agents performing mark-to-market, P&L estimation, or treasury revaluation workflows where both rates are already known. Prefer this over market-data endpoints when reproducibility and auditability of the math matters and the caller controls the rate inputs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:59:37.468Z","isFirstParty":false}