{"uid":"cap_W9rFgZWdvTOcbO70LmBlA","slug":"gateway-spraay-app-3c757016","name":"Spraay Gateway FX Oracle","description":"Stablecoin FX rates.","url":"https://gateway.spraay.app/api/v1/oracle/fx","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","properties":{"base":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"rates":{"type":"object"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"base":"USDC"}}},"response":{"base":"USDC","meta":{"note":"Rates are derived from on-chain DEX liquidity. Large trades may experience slippage.","chain":"Base","source":"uniswap-v3-onchain","chainId":8453,"pairCount":4},"rates":{"DAI":{"name":"Dai Stablecoin","rate":1.000185,"status":"stable","symbol":"DAI","address":"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb","feeTier":100,"deviation":"0.018%","inverseRate":0.999815},"EURC":{"name":"Euro Coin","note":"EUR/USD rate derived from on-chain EURC/USDC liquidity","rate":0.867309,"status":"depeg-warning","symbol":"EURC","address":"0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42","feeTier":500,"deviation":"13.269%","inverseRate":1.152992},"USDT":{"name":"Tether USD","rate":1.001626,"status":"stable","symbol":"USDT","address":"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2","feeTier":100,"deviation":"0.163%","inverseRate":0.998377},"USDbC":{"name":"USD Base Coin","rate":0.999998,"status":"stable","symbol":"USDbC","address":"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA","feeTier":100,"deviation":"0.000%","inverseRate":1.000002}},"_gateway":{"version":"2.2.0","endpoint":"GET /api/v1/oracle/fx","provider":"spraay-x402"},"timestamp":"2026-06-18T05:13:01.426Z"}},"exampleRequest":{"base":"USDC"},"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WvEWz1pRkhOQ4FkqhxxVf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns stablecoin-based foreign exchange rates, optionally filtered by a base currency.","exampleAgentPrompt":"What are the current stablecoin FX rates with USDC as the base currency?","exampleUseCases":null,"resultDescription":"A rates object containing exchange rate values for various currency pairs relative to the requested base stablecoin (e.g. USDC), suitable for use in cross-border payment calculations or DeFi pricing logic.","failureModes":["Invalid or unsupported base currency returns an error or empty rates","Payment not provided or insufficient USDC results in HTTP 402","Rate data temporarily unavailable due to oracle downtime","Malformed query parameter returns 400 bad request"],"whenToPreferThis":"Use this endpoint when you need real-time stablecoin-anchored FX rates for cross-border crypto payments, DeFi applications, or stablecoin-denominated invoicing — especially when operating within the Spraay/x402 payment ecosystem on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:05.282Z","isFirstParty":false}