{"uid":"cap_SNCLhQAuBNLyEAN-Tjghi","slug":"x402-data-hub-v2-currency-conversion-f8c46d7e","name":"x402 Data Hub v2 – Currency Conversion","description":"16 paid endpoints - Crypto, Exchange, Yield, Governance, Sentiment","url":"https://x402-data-hub-v2.vercel.app/api/exchange/convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"amount":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cMxYutERpLkmFdP05k9p9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a specified amount from one currency or cryptocurrency to another, returning the converted value at current exchange rates","exampleAgentPrompt":"Convert 250 USDC to ETH for me — I need to know exactly how much ETH I'd get at the current exchange rate.","exampleUseCases":[{"title":"DeFi portfolio rebalancing check","prompt":"I'm thinking of swapping 1000 USDC into ETH — how much ETH would I actually get at today's rate?"},{"title":"Cross-currency invoice calculation","prompt":"I need to invoice a client for 5 ETH — can you tell me what that equals in USD right now so I can put the right fiat amount on the invoice?"},{"title":"Crypto-to-crypto trade sizing","prompt":"I want to convert 0.1 BTC into SOL — what's the current conversion and how many SOL would I receive?"}],"resultDescription":"Returns the converted amount in the target currency along with the implied exchange rate for the given from/to currency pair and input amount.","failureModes":["Unsupported currency code for 'from' or 'to' — returns error if the token/currency symbol is not recognized","Amount is zero or negative — may return validation error","Exchange rate data temporarily unavailable — service may return 5xx if upstream price feed is down","Payment not processed — x402 payment failure returns 402 before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call currency or crypto conversion calculation without managing your own price feed infrastructure. Particularly suited for agents operating in DeFi contexts needing on-demand conversion between crypto and fiat or token-to-token pairs. Prefer this over full exchange APIs when you only need the converted value and don't need to execute a trade.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:40:11.150Z","isFirstParty":false}