Endpoints / Returns, risk and historical multiples
Multi-asset correlations and risk
USD-aligned pairwise daily return correlations, annualized volatility, cumulative return and max drawdown across 2 to 25 instruments.
/api/v1/analytics/correlationsSandbox5 credits per listing Try the sample free with mw_demo.
Parameters
tickerslistrequired2 to 25 distinct comma-separated listing selectors
Optional parameters (6)
startstringFirst date to include, as an ISO date (YYYY-MM-DD).
endstringLast date to include, as an ISO date (YYYY-MM-DD).
basisprice | totalprice or total (verified US adjusted closes).
currencynative | USDUSD converts international closes with dated FX rates; native keeps local units.
snapshot_idstringPin the request to one immutable snapshot so a read across several pages stays consistent.
formatjson | csvReturn a JSON page or UTF-8 CSV rows.
Response
Each row has these fields. Rows arrive in data, next to schema_version, snapshot_id, total_count, next_cursor, provenance.
return_basisprice | totalWhether the return counts price only or includes dividends.
currencystringThe currency the amounts on this row are in.
window_startstringThe first date of the window the figure covers.
window_endstringThe last date of the window the figure covers.
instrumentsarraycorrelationsarray
Research questions
Did Nvidia, Apple and bitcoin tend to move together on comparable dates?
GET https://api.quantset.dev/api/v1/analytics/correlations?tickers=us:NVDA,us:AAPL,crypto:BTCUSDTInspect window_start, window_end, currency and return_basis, then read the entry for the specific instrument pair.
How closely did two US stocks’ total returns move during 2024?
GET https://api.quantset.dev/api/v1/analytics/correlations?tickers=AAPL,MSFT&start=2024-01-02&end=2024-12-31&basis=total¤cy=USDRead the pair entry and its observation count. Keep the currency conversion and dividend basis with the coefficient.
Reading the results
Correlations summarize joint movements in returns. The instrument summaries answer a separate question about each listing’s volatility and cumulative performance.
Coverage and limits
Read overlapping_sessions for each pair. Correlation is withheld below five shared return observations or when either series has no return variance. Pairs in one request can have different overlap.
Related guides
CSV, spreadsheets and agents
The same rows as a spreadsheet-ready table. Add format=csv to the request.
curl "https://api.quantset.dev/api/v1/analytics/correlations?tickers=us:NVDA,us:AAPL,crypto:BTCUSDT&format=csv" -H "X-API-Key: mw_demo"
Or pull it straight into Google Sheets with one formula. Excel and larger pulls
=IMPORTDATA("https://api.quantset.dev/api/v1/analytics/correlations?tickers=us:NVDA,us:AAPL,crypto:BTCUSDT&format=csv&apikey=mw_demo")AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent
Errors
| Status | Code | What to do |
|---|---|---|
| 400 | conflicting_credentials | Supply one credential. |
| 401 | invalid_credentials | Supply a valid API key. |
| 402 | insufficient_credits | Reduce the request ceiling or refill your credits. |
| 403 | insufficient_access | Your key does not have the required access. |
| 404 | unknown_instrument | The requested listing is absent from the catalog. |
| 409 | snapshot_changed | Start the read again with the current snapshot. |
| 413 | export_too_large | Reduce the page size before requesting CSV again. |
| 422 | invalid_parameter, ambiguous_instrument | Correct the named parameter and retry. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 500 | internal_error | The request could not be completed. |
| 503 | temporarily_unavailable | Retry safe reads after a short delay. |
Questions
- Can I try Multi-asset correlations and risk without signing up?
- Yes. Use the sandbox key mw_demo and the sample selectors on this page.
- What does Multi-asset correlations and risk cost?
- 5 credits for each listing you ask for. A request that fails costs nothing.
- Which plan includes it?
- Every account. Free credits, credit packs and subscriptions all read this data.
- Can I get it as CSV or in a spreadsheet?
- Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.
- Can an AI agent use this?
- Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
- What does null mean in the response?
- The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.