{"uid":"cap_HR7y1BtTOwQYO7K4qFOQj","slug":"httpay-token-correlations-api-a4e7a854","name":"HTTPay Token Correlations API","description":"Calculate price correlation matrix between Base ecosystem tokens. Params: ?tokens=WETH,AERO,cbBTC&period=7d. Returns Pearson correlation coefficients, diversification score, and portfolio insights. Useful for portfolio optimization agents.","url":"https://httpay.xyz/api/token-correlations","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Calculate price correlation matrix between Base ecosystem tokens. Params: ?tokens=WETH,AERO,cbBTC&period=7d. Returns Pearson correlation coefficients, diversification score, and portfolio insights. Useful for portfolio optimization agents."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4OYrXY2I15VSjJLkcImyW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a Pearson correlation matrix between Base ecosystem tokens over a specified time period to support portfolio optimization and diversification analysis.","exampleAgentPrompt":"Show me the price correlation matrix for WETH, AERO, and cbBTC on Base over the last 7 days — I want to see the diversification score and which pairs are most correlated.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a Pearson correlation coefficient matrix for the requested tokens, an overall diversification score, and natural-language portfolio insights to guide asset allocation decisions.","failureModes":["Invalid or unrecognized token symbols return an error or empty matrix","Unsupported period format causes a 400 bad request","Insufficient historical price data for the requested period may yield incomplete results","Payment failure (402) if USDC balance is insufficient or x402 handshake fails","Rate limiting or server errors on the httpay.xyz infrastructure"],"whenToPreferThis":"Use this endpoint when an AI agent needs quantitative correlation analysis between Base ecosystem tokens specifically — particularly when building portfolio optimization logic, assessing diversification, or evaluating co-movement risk among DeFi tokens on Base. Prefer this over generic price feeds when the goal is pairwise statistical relationships rather than raw prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:31.080Z","isFirstParty":false}