> For the complete documentation index, see [llms.txt](https://docs.kaiko.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaiko.com/rest-api/cefi-spot-markets/analytics/correlation-beta-and-realized-volatility.md). Agents can also search and read this documentation through its [MCP server](https://docs.kaiko.com/~gitbook/mcp).

# Correlation, beta and realized volatility

{% hint style="info" %}

### This data is included in the following Kaiko packages:

* Kaiko Risk Indicators \[Intermediate Tier]
* Kaiko Risk Indicators \[Advanced Tier]

*Subscriptions with "CeFi Spot" as the market type.*
{% endhint %}

## What is this endpoint for?

> Measure how closely two assets move together and how strongly one reacts to the other. For two spot pairs on the same exchange, this endpoint returns one row per day with each pair's close, daily log return and realized volatility over 30, 90 and 180 days, together with the correlation of their daily returns and the beta of the second pair relative to the first, the benchmark, over the same windows.\
> \
> Log returns are computed from daily closes. Realized volatility is measured with the Parkinson estimator, from each day's high and low prices, and annualized by √365. Correlation is the Pearson correlation of the two pairs' daily log returns, and beta is \`cov(r1, r2) / var(r1)\`, rounded to 2 decimals. Days are UTC, and each request returns the full daily series, newest day first.

```json
{"openapi":"3.1.1","info":{"title":"Kaiko API","version":"2026-10-01"},"tags":[{"name":"Volatility","description":"Volatility analytics: implied volatility on listed crypto options and on US-listed equity and ETF options (surfaces, term structures and the metrics derived from them), realized volatility of spot pairs (cones, monthly versus daily ratio) and the correlation and beta of two spot pairs."}],"servers":[{"url":"https://api.kaiko.io","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Your Kaiko API key. Sent on every request. Never in a query parameter.\n"}},"parameters":{"ConeExchangeQuery":{"name":"exchange","in":"query","required":true,"description":"Spot exchange the pair trades on, part of its identity with `base_asset` and `quote_asset`.","schema":{"$ref":"#/components/schemas/ConeExchange"}},"BaseAssetQuery":{"name":"base_asset","in":"query","required":true,"description":"Base asset code.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$"}},"QuoteAssetQuery":{"name":"quote_asset","in":"query","required":true,"description":"Quote asset code.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$"}},"BaseAsset2Query":{"name":"base_asset_2","in":"query","required":true,"description":"Base asset code of the second pair, the one measured against the benchmark pair (`base_asset`, `quote_asset`). On the same `exchange`.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$"}},"QuoteAsset2Query":{"name":"quote_asset_2","in":"query","required":true,"description":"Quote asset code of the second pair.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$"}},"ApiVersionQuery":{"name":"api_version","in":"query","required":false,"description":"Contract version to serve, as a date. Each endpoint serves its newest version released on or before it, so one date pins the whole API. When omitted, the endpoint's oldest version still served is used, so breaking changes only reach clients that raise their date. Append `-preview` (`2027-02-01-preview`) to also be served preview versions, which carry no stability promise. A date in the future, or one resolving to a retired version, returns 400 `unsupported_api_version`. The version served is echoed in `meta.api_version`, and `meta.url` and `meta.next_url` always carry this parameter. No `default` here on purpose: it differs per endpoint, and the request validator would otherwise fill in one date for all of them.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$"}}},"schemas":{"ConeExchange":{"type":"string","enum":["arkm","binc","bnus","bfnx","bgsp","bthb","btmt","btmx","stmp","bvav","bull","bbsp","cbse","crco","drbt","gate","gmni","huob","krkn","kcon","lmax","merc","mexc","okcn","okex","polo","upbt"],"description":"Kaiko code of a spot exchange whose daily realized volatility is published, e.g. `cbse` (Coinbase), `binc` (Binance), `krkn` (Kraken), `drbt` (Deribit spot)."},"ListVolatilityCorrelationBetaResponse":{"type":"object","description":"Every day of the two pairs' correlation and beta series, sorted by `timestamp` descending (newest first).","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VolatilityCorrelationBeta"}},"meta":{"$ref":"#/components/schemas/Meta"}}},"VolatilityCorrelationBeta":{"type":"object","description":"One UTC day of two spot pairs' correlation, beta and realized volatility series, unique on `timestamp` within a response. Columns without a suffix are the benchmark pair's, columns ending in `_2` the second pair's. **No identity columns (a deliberate exception to the rule that rows carry their identity):** the exchange and the two pairs are one value per request, as in `monthly-vs-daily-volatility-ratio`. A response always covers the pairs named in the query, and `meta.url` names them; a client that merges rows of several requests must attach `exchange`, `base_asset`, `quote_asset`, `base_asset_2` and `quote_asset_2` itself. The realized volatility columns are the same Parkinson daily series as `realized_volatility_<N>d` on `cones`.","required":["timestamp","close","log_return","realized_volatility_30d","realized_volatility_90d","realized_volatility_180d","close_2","log_return_2","realized_volatility_30d_2","realized_volatility_90d_2","realized_volatility_180d_2","correlation_30d","correlation_90d","correlation_180d","beta_30d","beta_90d","beta_180d"],"properties":{"timestamp":{"type":"string","format":"date-time","description":"The day, at 00:00 UTC. ISO 8601 UTC, millisecond precision."},"close":{"type":"number","format":"double","description":"The day's close of the benchmark pair (`base_asset`, `quote_asset`), in `quote_asset`, on `exchange`."},"log_return":{"type":"number","format":"double","description":"Daily log return of the benchmark pair (`base_asset`, `quote_asset`), `ln(close / previous close)` against its own previous daily close. Nominal (`0.01` is a 1 % log return)."},"realized_volatility_30d":{"type":["number","null"],"format":"double","description":"30-day trailing Parkinson realized volatility of the benchmark pair (`base_asset`, `quote_asset`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"realized_volatility_90d":{"type":["number","null"],"format":"double","description":"90-day trailing Parkinson realized volatility of the benchmark pair (`base_asset`, `quote_asset`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"realized_volatility_180d":{"type":["number","null"],"format":"double","description":"180-day trailing Parkinson realized volatility of the benchmark pair (`base_asset`, `quote_asset`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"close_2":{"type":"number","format":"double","description":"The day's close of the second pair (`base_asset_2`, `quote_asset_2`), in `quote_asset_2`, on `exchange`."},"log_return_2":{"type":"number","format":"double","description":"Daily log return of the second pair (`base_asset_2`, `quote_asset_2`), `ln(close / previous close)` against its own previous daily close. Nominal (`0.01` is a 1 % log return)."},"realized_volatility_30d_2":{"type":["number","null"],"format":"double","description":"30-day trailing Parkinson realized volatility of the second pair (`base_asset_2`, `quote_asset_2`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"realized_volatility_90d_2":{"type":["number","null"],"format":"double","description":"90-day trailing Parkinson realized volatility of the second pair (`base_asset_2`, `quote_asset_2`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"realized_volatility_180d_2":{"type":["number","null"],"format":"double","description":"180-day trailing Parkinson realized volatility of the second pair (`base_asset_2`, `quote_asset_2`), as of the day, annualized by √365. Nominal (`0.45` is 45 %). `null` when not reported: the realized-volatility series has no value for the day, typically the oldest days of the history."},"correlation_30d":{"type":["number","null"],"format":"double","description":"Pearson correlation of the two pairs' daily log returns over the last 30 days both have a return, between -1 and 1. `null` when not computable: the window lacks a full run of 30 days, or the benchmark's returns have no variance over it."},"correlation_90d":{"type":["number","null"],"format":"double","description":"Pearson correlation of the two pairs' daily log returns over the last 90 days both have a return, between -1 and 1. `null` when not computable: the window lacks a full run of 90 days, or the benchmark's returns have no variance over it."},"correlation_180d":{"type":["number","null"],"format":"double","description":"Pearson correlation of the two pairs' daily log returns over the last 180 days both have a return, between -1 and 1. `null` when not computable: the window lacks a full run of 180 days, or the benchmark's returns have no variance over it."},"beta_30d":{"type":["number","null"],"format":"double","description":"Beta of the second pair on the benchmark over the last 30 days both have a return, `cov(r1, r2) / var(r1)`, rounded to 2 decimals. `null` in the same cases as `correlation_30d`."},"beta_90d":{"type":["number","null"],"format":"double","description":"Beta of the second pair on the benchmark over the last 90 days both have a return, `cov(r1, r2) / var(r1)`, rounded to 2 decimals. `null` in the same cases as `correlation_90d`."},"beta_180d":{"type":["number","null"],"format":"double","description":"Beta of the second pair on the benchmark over the last 180 days both have a return, `cov(r1, r2) / var(r1)`, rounded to 2 decimals. `null` in the same cases as `correlation_180d`."}}},"Meta":{"type":"object","description":"Metadata of a collection response.","required":["api_version","url","count","next_url"],"properties":{"api_version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$","description":"Version this endpoint served: its version released on or before the requested `api_version`, or its oldest version still served when the request omitted it. Suffixed `-preview` when a preview version served it."},"url":{"type":"string","format":"uri","description":"Absolute URL of the request that produced this response, as received: path and query string unchanged, defaults not filled in, except `api_version`, which is always present (the version served when the request omitted it). Lets a stored response say what it answers, in the shape it was answered."},"count":{"type":"integer","minimum":0,"description":"Number of items in `data` on this page."},"next_url":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, `null` on the last page. It holds only public parameters: the original query with every default made explicit (`api_version` included) and the time bound moved past the last row, plus the dataset's tie-breaker (`after_<key>`) where timestamps can tie. An operation that pages on another keyset (a block position, a snapshot) says so in its description, and its `next_url` carries that keyset's parameters instead."}}},"Problem":{"type":"object","description":"RFC 9457 problem details. Served as application/problem+json.","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri-reference","const":"about:blank","description":"Always `about:blank`; the reason is carried by `code`."},"title":{"type":"string","description":"HTTP reason phrase."},"status":{"type":"integer","minimum":400,"maximum":599,"description":"HTTP status code, repeated for clients that lose the status line."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Do not parse it."},"instance":{"type":"string","format":"uri-reference","description":"Request path and request id, to quote to support."},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","description":"Stable machine-readable reason. Clients branch on this. New values are additive; renaming one is breaking. Values in use: invalid_parameter, unsupported_api_version, missing_api_key, invalid_api_key, not_entitled, history_out_of_entitlement, unknown_instrument, pair_not_covered, unknown_asset, unknown_index, unsupported_blockchain, chain_capability_unsupported, token_not_found, unknown_contract, unknown_protocol, unknown_pool, query_too_large, snapshot_expired, resource_not_found, method_not_allowed, not_acceptable, rate_limited, internal_error, service_unavailable."},"errors":{"type":"array","description":"On 400, one entry per invalid parameter.","items":{"$ref":"#/components/schemas/ParameterError"}}}},"ParameterError":{"type":"object","description":"One invalid parameter in a 400 response.","required":["parameter","detail"],"properties":{"parameter":{"type":"string","description":"Name of the offending parameter."},"detail":{"type":"string","description":"What is wrong with it."}}}},"responses":{"BadRequest":{"description":"Invalid parameter, window or API version.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Unauthorized":{"description":"Missing or unknown X-Api-Key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Forbidden":{"description":"The key is valid but not entitled to this product, instrument or history depth.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotAcceptable":{"description":"The Accept header excludes application/json.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"TooManyRequests":{"description":"Rate limited. Retry after the delay in Retry-After.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"InternalError":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"A dependency is down or the data is not available yet.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}}},"paths":{"/analytics/volatility/correlation-beta":{"get":{"operationId":"ListVolatilityCorrelationBeta","tags":["Volatility"],"summary":"What is this endpoint for?","description":"Measure how closely two assets move together and how strongly one reacts to the other. For two spot pairs on the same exchange, this endpoint returns one row per day with each pair's close, daily log return and realized volatility over 30, 90 and 180 days, together with the correlation of their daily returns and the beta of the second pair relative to the first, the benchmark, over the same windows.\n\nLog returns are computed from daily closes. Realized volatility is measured with the Parkinson estimator, from each day's high and low prices, and annualized by √365. Correlation is the Pearson correlation of the two pairs' daily log returns, and beta is `cov(r1, r2) / var(r1)`, rounded to 2 decimals. Days are UTC, and each request returns the full daily series, newest day first.","parameters":[{"$ref":"#/components/parameters/ConeExchangeQuery"},{"$ref":"#/components/parameters/BaseAssetQuery"},{"$ref":"#/components/parameters/QuoteAssetQuery"},{"$ref":"#/components/parameters/BaseAsset2Query"},{"$ref":"#/components/parameters/QuoteAsset2Query"},{"$ref":"#/components/parameters/ApiVersionQuery"}],"responses":{"200":{"description":"Every day of the two pairs' common series, sorted by `timestamp` descending, or an empty `data` when they have none past the warm-up; `meta.next_url` is always `null`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVolatilityCorrelationBetaResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"One of the two pairs (`base_asset`, `quote_asset` or `base_asset_2`, `quote_asset_2`) is not published on `exchange`; the detail names only the pair(s) not published.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"406":{"$ref":"#/components/responses/NotAcceptable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kaiko.com/rest-api/cefi-spot-markets/analytics/correlation-beta-and-realized-volatility.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
