{"uid":"cap_h7oneKD4KiT4GdAiKn5Rz","slug":"delx-fx-convert-amount-cc2d9caf","name":"Delx FX Convert Amount","description":"Convert an amount with a caller-supplied FX rate (no live feed) — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already…","url":"https://api.delx.ai/api/v1/x402/fx-convert-amount","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"base":{"type":"string","description":"Input field: base."},"rate":{"type":"number","description":"Input field: rate."},"side":{"type":"string","description":"Input field: side."},"quote":{"type":"string","description":"Input field: quote."},"amount":{"type":"integer","description":"Input field: amount."}}},"responseSchema":{"type":"json","example":{"ok":true,"base":"USD","note":"Caller supplies rate; not a live FX feed","rate":5.2,"side":"multiply","quote":"BRL","amount":100,"schema":"delx/util-fx-convert-amount/v1","decimals":6,"converted":520}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HBNez9rN5MbBAWnRh-hHL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Convert a monetary amount between two currencies using a caller-supplied exchange rate, returning deterministic conversion results as JSON","exampleAgentPrompt":"Convert 1000 USD to EUR using an exchange rate of 1.08 on the buy side and give me the result as a number.","exampleUseCases":[{"title":"Preflight FX check before trade execution","prompt":"Before I submit this trade, convert 5000 GBP to USD at a rate of 1.265 on the sell side so I can verify the expected output amount."},{"title":"Invoice amount conversion for billing","prompt":"I'm generating an invoice — convert 2500 EUR to JPY using a rate of 160.5 so I can show the equivalent amount to my Japanese client."},{"title":"Crypto portfolio value estimation","prompt":"I know today's BTC/USDC rate is 67400 — convert 0.75 BTC to USDC using that rate on the buy side so I can see what it's worth in stablecoins."}],"resultDescription":"Returns a deterministic machine-readable JSON object containing the converted amount derived from applying the caller-supplied rate to the input amount, along with the base and quote currency identifiers and conversion side used — no live market data, no external calls, purely computed from provided inputs.","failureModes":["Missing required fields (base, quote, amount, or rate) result in a validation error","Non-numeric or zero/negative rate may cause computation errors","Invalid or unrecognized currency codes may result in rejection or ambiguous output","Amount as integer may cause precision issues for fractional currency values","Payment failure via x402 protocol prevents endpoint access"],"whenToPreferThis":"Choose this endpoint when you already have an exchange rate from an external source and need deterministic, stateless computation of the converted amount — ideal for preflight checks, invoice generation, portfolio valuation, or any workflow where you supply your own rate and want a reliable machine-readable result without hitting a live FX feed or incurring upstream data costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:57.227Z","isFirstParty":false}