QuantSet Docs Developer console

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.

GET/api/v1/analytics/correlations

Sandbox5 credits per listing Try the sample free with mw_demo.

View as MarkdownWhole API as text

Parameters

tickerslistrequired

2 to 25 distinct comma-separated listing selectors

Optional parameters (6)
startstring

First date to include, as an ISO date (YYYY-MM-DD).

endstring

Last date to include, as an ISO date (YYYY-MM-DD).

basisprice | total

price or total (verified US adjusted closes).

currencynative | USD

USD converts international closes with dated FX rates; native keeps local units.

snapshot_idstring

Pin the request to one immutable snapshot so a read across several pages stays consistent.

formatjson | csv

Return 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 | total

    Whether the return counts price only or includes dividends.

  • currencystring

    The currency the amounts on this row are in.

  • window_startstring

    The first date of the window the figure covers.

  • window_endstring

    The last date of the window the figure covers.

  • instrumentsarray
  • correlationsarray
View response example or schema

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:BTCUSDT

Inspect 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&currency=USD

Read 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

StatusCodeWhat to do
400conflicting_credentialsSupply one credential.
401invalid_credentialsSupply a valid API key.
402insufficient_creditsReduce the request ceiling or refill your credits.
403insufficient_accessYour key does not have the required access.
404unknown_instrumentThe requested listing is absent from the catalog.
409snapshot_changedStart the read again with the current snapshot.
413export_too_largeReduce the page size before requesting CSV again.
422invalid_parameter, ambiguous_instrumentCorrect the named parameter and retry.
429rate_limitedWait for Retry-After seconds.
500internal_errorThe request could not be completed.
503temporarily_unavailableRetry 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.