{"uid":"cap_wOnKZc1KUTil9KJhsjqZ0","slug":"meld402-fx-quote-522473bd","name":"meld402 FX Quote","description":"14 paid data endpoints for autonomous agents and developers. Covers crypto intelligence (token, chain, Solana, gas), markets (FX, market pulse), location (weather), and research (news, brief). Each route aggregates multiple public sources into one stable schema with a single USDC payment over x402 on Base.","url":"https://meld402.vercel.app/api/fx/quote","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","maxLength":20,"minLength":2,"description":"Currency to convert to. Same formats as `from`."},"from":{"type":"string","maxLength":20,"minLength":2,"description":"Currency to convert from. ISO 4217 fiat code (\"USD\") or crypto symbol (\"BTC\")."},"amount":{"type":"number","default":1,"maximum":1000000000,"description":"Quantity of `from` to convert.","exclusiveMinimum":0}}},"responseSchema":{"type":"json","example":{"data":{"to":{"code":"EUR","kind":"fiat","usd_price":1.1699},"from":{"code":"BTC","kind":"crypto","usd_price":77554},"rate":66291.14,"as_of":"2026-08-21","route":"via_usd","amount":1,"result":66291.14},"meta":{"as_of":"2026-08-24T00:00:00.000Z","sources":["coinpaprika","frankfurter"],"degraded":[],"attribution":["Market data by Coinpaprika (coinpaprika.com)","Fiat reference rates by Frankfurter, sourced from the ECB"]}}},"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_cycztMapU5F7mxB7cSZKp","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 given amount between any fiat currency or crypto pair by aggregating rates from multiple sources (Coinpaprika, ECB via Frankfurter) into a single stable response","exampleAgentPrompt":"What's the current exchange rate to convert 1 BTC into EUR, pulling from multiple market sources so I get a reliable quote?","exampleUseCases":[{"title":"Crypto portfolio fiat valuation","prompt":"I hold 2.5 ETH — what's that worth right now in British pounds? Pull from multiple sources so it's accurate."},{"title":"International payment cost estimate","prompt":"I need to send 10,000 USD to someone in Japan. What's the current USD to JPY rate and how many yen will they receive?"},{"title":"Crypto-to-fiat invoice pricing","prompt":"I'm invoicing a client in euros but want to price it in BTC — what's the BTC to EUR rate today so I can calculate the right amount?"}],"resultDescription":"A JSON object containing the exchange rate between the two currencies, the converted result for the requested amount, USD reference prices for both currencies, the routing method used (e.g. via_usd), the date the rates are as of, and metadata including which data sources contributed (e.g. Coinpaprika, Frankfurter) and any degraded sources.","failureModes":["Unsupported currency code returns an error — currency symbols must be valid ISO 4217 fiat codes or recognized crypto tickers","Amount of 0 or negative is rejected by schema (exclusiveMinimum: 0)","Source degradation: one or more underlying sources may be unavailable, reflected in the 'degraded' metadata array but response may still succeed with partial data","Payment failure over x402 on Base results in 402 response before data is returned","Invalid JSON body or missing required fields returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a single stable conversion quote that aggregates both crypto (Coinpaprika) and fiat (ECB via Frankfurter) rates in one call with a consistent schema. It is especially useful when converting between crypto and fiat, or cross-fiat pairs that route through USD. Prefer it over raw exchange APIs when you want source attribution and degradation tracking in the response, and when you are already operating in the x402 micropayment ecosystem on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:53.747Z","isFirstParty":false}