{"uid":"cap_Vv_s4bRxxcECSehoAo6eE","slug":"swaphunt-btc-correlation-calculator-644e4350","name":"SwapHunt BTC Correlation Calculator","description":"Pearson correlation of a coin's returns vs BTC (-1 to +1) over the period. Use to judge diversification and whether an alt is moving independently or just tracking BTC. A correlation coefficient, not a beta or causation claim.","url":"https://x402.swaphunt.dev/v1/market/correlation","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"coin":{"type":"string","default":"ETH","description":"Coin to analyze"},"quote":{"type":"string","default":"USDT","description":"Quote currency (USDT, USDC, EUR)"},"period":{"type":"string","default":"7d","description":"Period (7d, 30d)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TIcTmEZ_c4AIHnly2VWFQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the Pearson correlation coefficient of a coin's returns vs BTC over a 7d or 30d period to assess diversification and co-movement.","exampleAgentPrompt":"What's the Pearson correlation between SOL and BTC over the last 30 days — is SOL moving independently or just tracking Bitcoin?","exampleUseCases":null,"resultDescription":"A Pearson correlation coefficient between -1 and +1 representing how closely the specified coin's returns track BTC over the chosen period, useful for judging diversification and independence of price action.","failureModes":["Unsupported coin symbol returns error or empty result","Invalid period value (not '7d' or '30d') may return validation error","Unsupported quote currency returns an error","Insufficient historical data for very new coins","Payment failure due to insufficient USDC balance ($0.003 required)","Network timeout if market data source is unavailable"],"whenToPreferThis":"Use this endpoint when you need a statistically rigorous, single-number summary of how closely an altcoin tracks Bitcoin returns, particularly for portfolio diversification analysis or when deciding if an alt provides genuine exposure diversification vs. being a BTC proxy. Prefer this over general market data endpoints when the specific question is about co-movement or correlation, not price levels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:46:27.640Z","isFirstParty":false}