{"uid":"cap_WoCDWic3MvWA63_pCJ8jj","slug":"dopaminedesk-fx-rates-api-5c5d24f3","name":"DopamineDesk FX Rates API","description":"Fetch current reference foreign-exchange rates for a base currency, optionally filtered to target currencies.","url":"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/fx_rates","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":["base","target"],"properties":{"base":{"type":"string","description":"Base currency code (e.g., EUR)."},"target":{"type":"string","description":"Target currency code (e.g., USD)."}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","source","source_url","base","updated_at","next_update_at","rates","marketplace_metadata"],"properties":{"base":{"type":"string"},"rates":{"type":"object","required":["USD"],"properties":{"USD":{"type":"number"}},"additionalProperties":true},"source":{"type":"string"},"success":{"type":"boolean"},"source_url":{"type":"string"},"updated_at":{"type":"string"},"next_update_at":{"type":"string"},"marketplace_metadata":{"type":"object","required":["data_mode","billable","availability","source"],"properties":{"source":{"type":"string"},"billable":{"type":"boolean"},"data_mode":{"type":"string"},"availability":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"base":"EUR","rates":{"USD":1.152984},"source":"https://www.exchangerate-api.com","success":true,"source_url":"https://www.exchangerate-api.com/docs/free","updated_at":"2026-08-07T00:02:31.000Z","next_update_at":"2026-08-08T00:14:21.000Z","marketplace_metadata":{"source":"ExchangeRate-API open endpoint","billable":true,"data_mode":"live_source","availability":"operational"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nE5giGGruInaYYiNTRXFc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current exchange rate between two currency pairs (base and target), settling payment via x402 USDC on Base.","exampleAgentPrompt":"What's the current exchange rate from EUR to USD? I need the live rate right now.","exampleUseCases":[{"title":"Live forex rate for travel budgeting","prompt":"I'm heading to Japan next week — what's the current exchange rate from USD to JPY so I can figure out how much cash to bring?"},{"title":"Currency conversion for international invoice","prompt":"I'm billing a client in the UK and need to know the current GBP to EUR exchange rate so I can set the right price on my invoice."},{"title":"FX monitoring for crypto-fiat arbitrage","prompt":"What's the live rate between EUR and USD right now? I'm comparing it against an on-chain price to spot any arbitrage."}],"resultDescription":"Returns a JSON object containing the base currency code, target currency code, the current exchange rate as a decimal number, and a Unix timestamp indicating when the rate was last updated.","failureModes":["Unsupported or invalid currency code returns an error response","Network timeout if the upstream FX data provider is unavailable","Missing required query parameters (base or target) returns a 400-style error","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Choose this endpoint when you need a quick, lightweight, pay-per-use FX rate lookup with USDC micropayment settlement on Base — ideal for AI agents that occasionally need spot exchange rates without a subscription or API key, especially in crypto-native or agentic payment workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:15.582Z","isFirstParty":false}