{"uid":"cap_LfnZWgJyBVm-kKUxxYYx-","slug":"api-quantoracle-dev-79940254","name":"QuantOracle Risk Correlation Matrix","description":"QuantOracle: risk/correlation","url":"https://api.quantoracle.dev/v1/risk/correlation","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"series":{"type":"object","title":"Series","description":"Named return series, e.g. {\"AAPL\": [0.01, -0.02, ...], \"MSFT\": [...]}","additionalProperties":{"type":"array","items":{"type":"number"}}}}},"responseSchema":null,"example":{"request":{"series":{"ASSET_A":[0.01,-0.02,0.005,0.03,0.015,-0.01,0.008,-0.015,0.002,0.025,0.012,-0.008,0.011,-0.018,0.004,0.028,0.014,-0.009,0.009,-0.016,0.003,0.026,0.013,-0.007,0.01,-0.017,0.006,0.029,0.011,-0.01],"ASSET_B":[0.008,-0.015,0.002,0.025,0.012,-0.008,0.007,-0.012,0.001,0.022,0.01,-0.006,0.009,-0.014,0.003,0.024,0.011,-0.007,0.008,-0.013,0.002,0.023,0.009,-0.005,0.01,-0.015,0.004,0.026,0.012,-0.008]}},"response":{"n":30,"ms":10.84,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"assets":["ASSET_A","ASSET_B"],"correlation":[[1,0.9963],[0.9963,1]],"volatilities":{"ASSET_A":0.237,"ASSET_B":0.1988}}},"exampleRequest":{"series":{"ASSET_A":[0.01,-0.02,0.005,0.03,0.015,-0.01,0.008,-0.015,0.002,0.025,0.012,-0.008,0.011,-0.018,0.004,0.028,0.014,-0.009,0.009,-0.016,0.003,0.026,0.013,-0.007,0.01,-0.017,0.006,0.029,0.011,-0.01],"ASSET_B":[0.008,-0.015,0.002,0.025,0.012,-0.008,0.007,-0.012,0.001,0.022,0.01,-0.006,0.009,-0.014,0.003,0.024,0.011,-0.007,0.008,-0.013,0.002,0.023,0.009,-0.005,0.01,-0.015,0.004,0.026,0.012,-0.008]}},"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EKo4gpiduQjrKRIxxQT_J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a pairwise correlation matrix and annualized volatilities for multiple asset return series","exampleAgentPrompt":"Can you calculate the pairwise correlation matrix and volatilities for AAPL, MSFT, and GOOGL using these daily return series — AAPL: [0.01, -0.02, 0.005, 0.03], MSFT: [0.008, -0.015, 0.002, 0.025], GOOGL: [-0.001, 0.01, -0.005, 0.02]?","exampleUseCases":null,"resultDescription":"Returns a square N×N correlation matrix across all submitted assets, per-asset annualized volatility estimates, the list of asset identifiers in matrix order, the number of observations used, and server-side computation time in milliseconds.","failureModes":["Fewer than 2 assets provided — cannot compute pairwise matrix","Return series of unequal length across assets — mismatched array sizes","Empty or null series arrays — insufficient data error","Single observation per asset — correlation undefined","Non-numeric values in return arrays — parsing or validation error"],"whenToPreferThis":"Use this endpoint when you need to quantify the statistical co-movement and individual volatility of multiple assets simultaneously from raw return data. It is ideal for portfolio construction, risk decomposition, diversification analysis, or building correlation heatmaps. Prefer this over general-purpose statistics libraries when you need a finance-aware, low-latency, pay-per-call cloud computation without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:12.161Z","isFirstParty":false}