{"uid":"cap_QuCyywgDR6Elv6mE1jObi","slug":"coinbase-exchange-crypto-market-data-api-c4a01424","name":"Coinbase Exchange Crypto Market Data API","description":"Get live cryptocurrency price and market data from Coinbase Exchange for BTC, ETH, SOL, and other supported trading pairs. Use this crypto market API for last price, best bid and ask, 24-hour open/high/low/volume, and 30-day volume. Defaults to BTC-USD.","url":"https://x402-trends-server.onrender.com/api/crypto-market","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":[],"properties":{"pair":{"type":"string","description":"Coinbase Exchange trading pair such as BTC-USD, ETH-USD, or SOL-USD. Defaults to BTC-USD."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","source","pair","price","bestBid","bestAsk","open24h","high24h","low24h","volume24h","volume30d","retrievedAt","cached"],"properties":{"pair":{"type":"string"},"price":{"type":["string","null"]},"cached":{"type":"boolean"},"low24h":{"type":["string","null"]},"source":{"type":"string"},"status":{"type":"string"},"bestAsk":{"type":["string","null"]},"bestBid":{"type":["string","null"]},"high24h":{"type":["string","null"]},"last24h":{"type":["string","null"]},"open24h":{"type":["string","null"]},"payment":{"type":"string"},"volume24h":{"type":["string","null"]},"volume30d":{"type":["string","null"]},"tickerTime":{"type":["string","null"]},"retrievedAt":{"type":"string"},"lastTradeSize":{"type":["string","null"]}},"additionalProperties":false}}}}},"responseSchema":null,"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_N5fP1YxnIA5EtGOgwDsvp","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":"Returns live cryptocurrency price and market data (last price, bid/ask, 24h OHLCV, 30d volume) for Coinbase Exchange trading pairs like BTC-USD, ETH-USD, and SOL-USD.","exampleAgentPrompt":"What's the current price of Ethereum right now — including the best bid and ask, and the 24-hour high, low, and volume on Coinbase?","exampleUseCases":[{"title":"Real-time Bitcoin price check","prompt":"What's Bitcoin trading at right now on Coinbase? Give me the last price, the best bid and ask, and how it compares to where it opened 24 hours ago."},{"title":"Solana volatility monitoring","prompt":"Pull the latest market data for SOL-USD — I want to see the 24-hour high and low, current price, and today's trading volume so I can assess how volatile it's been."},{"title":"ETH spread analysis for trading","prompt":"What's the current bid-ask spread on ETH-USD? Also grab the 30-day volume so I can get a sense of liquidity."}],"resultDescription":"Returns a JSON object containing: trading pair, last traded price, best bid, best ask, 24-hour open/high/low prices, 24-hour volume, 30-day volume, ticker timestamp, retrieval timestamp, and a flag indicating whether the data was served from cache. Source attribution and payment confirmation are also included.","failureModes":["Unsupported trading pair returns an error or null fields","Network timeout if Coinbase Exchange API is unavailable","Stale data served from cache during high-volatility periods","Invalid pair format (e.g. missing dash) may return a bad request error","Rate limiting or payment failure results in 402 response"],"whenToPreferThis":"Use this endpoint when you need real-time or near-real-time cryptocurrency market data from Coinbase Exchange, specifically for popular pairs like BTC-USD, ETH-USD, or SOL-USD. Prefer this over general financial data APIs when you need Coinbase-specific prices, bid/ask spreads, or 30-day volume figures. It is well-suited for agents monitoring crypto prices, performing spread analysis, or enriching financial dashboards with live market snapshots.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:41:54.113Z","isFirstParty":false}