{"uid":"cap_UZmsN5brCI24_yU1OxLTj","slug":"financial-data-x402-crypto-pair-price-b7b505e5","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://x402financialdata.com/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_6pXrL3Fp5bwuNHeWzn3Tn","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 cross-rate price and 24-hour USD change percentages for any cryptocurrency pair (e.g. BTC/ETH), sourced from CoinGecko, via a pay-per-call x402 micropayment.","exampleAgentPrompt":"What's the current price of BTC quoted in ETH, and how have both coins moved in the last 24 hours against USD?","exampleUseCases":[{"title":"Live cross-rate for trading decision","prompt":"What is the current SOL/BTC price right now, and how has each coin changed in USD over the last 24 hours? I want to know if SOL has outperformed BTC today."},{"title":"Portfolio rebalancing reference price","prompt":"I'm rebalancing my portfolio — can you pull the live ETH/BNB exchange rate and the 24h USD performance for both coins so I can decide which one to trim?"},{"title":"Crypto pair price alert check","prompt":"Check the current price of AVAX quoted in ETH and tell me what each coin's 24-hour USD change percentage is — I want to see if the ratio has shifted meaningfully today."}],"resultDescription":"A JSON object containing the cross-rate price of the base/quote pair (e.g. BTC/ETH = 33.75), the as-of timestamp, the 24-hour percentage price change in USD for both the base and quote coins separately, CoinGecko IDs and market cap ranks for both coins, and the data source. Note: a combined pair 24h-change is intentionally omitted to avoid inaccuracy from two independently cached legs.","failureModes":["Unknown or unsupported cryptocurrency symbol returns an error or empty result","Payment failure via x402 (insufficient USDC balance or unsupported chain) blocks the request","CoinGecko data staleness if the cache window has not refreshed yet (check as_of timestamp)","Malformed URL path parameters (e.g. spaces or lowercase variants) may return 4xx errors","Rate limiting or service unavailability on the upstream CoinGecko feed"],"whenToPreferThis":"Choose this endpoint when you need a real-time cryptocurrency cross-rate price (non-USD quote) without committing to an API key or subscription — ideal for AI agents that call price data infrequently or across many pairs, paying $0.01 USDC per call via x402. Prefer this over CoinGecko direct if you want trustless micropayment access on Base or Solana. Not ideal for high-frequency trading requiring millisecond latency or bulk batch pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:21.701Z","isFirstParty":false}