{"uid":"cap_5kN3rnNHhfijymbuRyAyB","slug":"financial-data-x402-crypto-pair-price-caccbb0e","name":"Financial Data x402 – Crypto Pair Price","description":"Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.","url":"https://x402-stock-indicators.vercel.app/crypto-pair/%7Bbase%7D/%7Bquote%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"base":"BTC","note":"No combined ratio 24h-change is provided -- combining two independently-cached USD legs into a synthetic ratio change was unreliable and dropped rather than shipped inaccurate. Use base_change_24h_pct_usd/quote_change_24h_pct_usd instead.","pair":"BTC/ETH","as_of":"2026-07-31T03:43:30.000Z","price":33.7577077484,"quote":"ETH","source":"coingecko","base_info":{"name":"Bitcoin","coingecko_id":"bitcoin","market_cap_rank":1},"quote_info":{"name":"Ethereum","coingecko_id":"ethereum","market_cap_rank":2},"base_change_24h_pct_usd":0.32,"quote_change_24h_pct_usd":-0.6}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fj6vUluFLIVUobrWkWEAR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current price, 24h USD change percentages, and metadata for a cryptocurrency trading pair (e.g. BTC/ETH) sourced from CoinGecko, paid per-call via x402 with USDC.","exampleAgentPrompt":"What's the current price of BTC quoted in ETH right now, along with each coin's 24-hour percentage change in USD?","exampleUseCases":[{"title":"Live crypto pair rate for trading","prompt":"What's the current price of SOL quoted in BTC, and how much has each coin moved in the last 24 hours?"},{"title":"Portfolio rebalancing check","prompt":"I need to know the live ETH/USDC price and both coins' 24h USD change percentages to decide whether to rebalance my holdings."},{"title":"Market cap rank comparison","prompt":"Can you pull the current BTC/ETH pair price and tell me the market cap ranks and CoinGecko IDs for both Bitcoin and Ethereum?"}],"resultDescription":"A JSON object containing: the trading pair label (e.g. 'BTC/ETH'), the computed pair price, the base and quote coin 24h USD change percentages (separately, not combined), the timestamp of the data, the data source (CoinGecko), and metadata for both coins including their name, CoinGecko ID, and market cap rank.","failureModes":["Payment not received or x402 payment flow fails → 402 Payment Required response","Invalid or unrecognized base/quote currency symbols → empty or error response","CoinGecko data temporarily unavailable → stale or missing price data","Combined 24h ratio change is intentionally not provided — use individual base/quote USD change fields instead","Network timeout on the Vercel edge function → 504 or connection error"],"whenToPreferThis":"Choose this endpoint when you need a live crypto-to-crypto pair price without setting up API keys or subscriptions, and you are operating in an x402-compatible agent environment that can pay $0.01 USDC per call on Base or Solana. Ideal for lightweight, pay-as-you-go crypto price lookups where you want both the current pair ratio and each asset's individual 24h USD movement. Prefer alternatives if you need aggregated OHLCV data, order book depth, or high-frequency streaming prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:48:59.070Z","isFirstParty":false}