{"uid":"cap_-qncwfjeZBNy9AoADHEgB","slug":"patch-guard-crypto-price-consensus-3dfebe46","name":"Patch Guard Crypto Price Consensus","description":"Four x402-paid agent utilities: safe JSON Patch evaluation, multi-source crypto price consensus, normalized Polymarket movers, and deterministic JSON repair/canonicalization.","url":"https://patch-guard-api.me-e51.workers.dev/v1/crypto-price-consensus","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"assets":{"type":"array","items":{"enum":["BTC","ETH","SOL","USDC"],"type":"string"},"maxItems":4,"minItems":1,"uniqueItems":true}}},"responseSchema":{"type":"json","example":{"asOf":"2026-08-08T12:00:00.000Z","assets":[{"asset":"BTC","quotes":[{"source":"Coinbase","priceUsd":65083.15},{"source":"CoinGecko","priceUsd":65074},{"source":"Kraken","priceUsd":65078.9}],"spreadBps":1.41,"maximumUsd":65083.15,"minimumUsd":65074,"sourceCount":3,"consensusUsd":65080.12}],"methodology":"Median of at least two independently fetched public spot-price sources.","quoteCurrency":"USD","unavailableAssets":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6LQax9jrfTiU9kWGM7IeO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches spot prices for BTC, ETH, SOL, and/or USDC from multiple independent sources (Coinbase, CoinGecko, Kraken) and returns a median consensus price with spread metrics.","exampleAgentPrompt":"Can you get me the current consensus price for BTC and ETH from multiple sources — I want to see if the prices are consistent across Coinbase, CoinGecko, and Kraken, and how wide the spread is?","exampleUseCases":[{"title":"Pre-trade price sanity check","prompt":"Before I execute this BTC trade, can you pull the consensus price across Coinbase, CoinGecko, and Kraken and tell me if there's any meaningful spread I should be aware of?"},{"title":"DeFi portfolio valuation","prompt":"I need the current consensus USD prices for BTC, ETH, and SOL from multiple sources so I can calculate my portfolio's total value — make sure you include the spread so I know how reliable the numbers are."},{"title":"Exchange discrepancy alert","prompt":"Check the current prices for ETH and SOL across all available sources and let me know if the spread in basis points is unusually wide — I'm looking for signs of price discrepancy between exchanges."}],"resultDescription":"Returns a JSON object with a timestamp, per-asset breakdown including per-source quotes (Coinbase, CoinGecko, Kraken), a computed median consensus price in USD, spread in basis points, min and max prices, source count, the aggregation methodology, and a list of any assets that were unavailable.","failureModes":["Fewer than two sources available for an asset — consensus cannot be computed, asset listed in unavailableAssets","Invalid or unsupported asset symbol submitted — validation error","Network timeout fetching one or more price sources — partial results or degraded consensus","Request with empty or malformed assets array — schema validation error"],"whenToPreferThis":"Use this endpoint when you need a trustworthy, multi-source cryptocurrency price rather than a single-exchange quote — ideal for any scenario where price accuracy, cross-exchange consistency, or manipulation resistance matters. Prefer it over single-source price APIs when building trading logic, portfolio valuation, or any agent workflow where a single compromised or stale feed would cause downstream errors. Supports only BTC, ETH, SOL, and USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:16.586Z","isFirstParty":false}