Skip to content

Public documentation

Product version
1.3.0
Docs revision
r0
State
Current · released
Deployment
not-deployed
Source
platform-docs-v1.3.0 · 6ba04cd58b52

Documented release is not yet live

Concepts

Correlations and volatility

v1.3.0platform-docs-v1.3.06ba04cd

Price tells an agent where a market is. It does not say what kind of market it is in: a quiet one that is coiling, a normal one, or one that has just broken loose. Mercury measures that state before the data reaches the agent, for volatility and for the relationships between markets, and attaches to every figure the way it was produced. This page explains what is measured, how often, what a regime is, and how to read inference_mode and point_in_time when you look at history.

Realized volatility

Realized volatility is measured for every covered market from intraday returns, annualised, and ranked as a percentile against the market's own recent history, together with a trend that shows whether volatility is rising or falling. A second, range-based estimate (Garman-Klass) is published next to it because it responds to the whole range of each bar and not only to the closes. The average daily range, and the share of it the current session has already covered, place the day's movement in context. These values are recalculated every five minutes.

Volatility regimes

A regime is a persistent state of the market, such as a compressed stretch, a normal one, or a spiking one, rather than a single reading. A hidden Markov model reads the volatility of each market and infers which state most probably produced the recent path. The label is one of Compressed, Normal-Rising or Spike-Rising, and Unknown when the model cannot say. Older history may still carry labels from a retired classifier.

Three more figures come from the same model. The switch risk is the probability that the market moves to another regime, the expansion probability is the probability of a volatility expansion, and a forecast of realized volatility completes the set. A regime label is filtered, not smoothed: it uses only data up to the bar it describes, so it says what could have been known at that time. Read the regime together with where price sits relative to value. High volatility above value can be directional acceptance; the same volatility inside value is more often disorderly chop, and Market Profile is what tells the two apart.

Correlations

Mercury measures how markets move together across the whole covered universe, up to 496 pairs across 32 markets. Each pair is measured over three horizons: the last hour on five-minute returns, and the last eight and twenty-four hours on hourly returns. For every pair the result carries the correlation, the beta, and the share of variance that one market explains in the other. The values are recalculated about every 75 to 85 minutes, so asking more often than once an hour returns the same numbers, and a correlation is marked stale two hours after its source bar.

Two markets can realise very different amounts of volatility while their correlation holds. A gap in volatility is therefore not evidence that a relationship has broken; the correlation itself is.

Correlation regimes

A second hidden Markov model follows how each relationship behaves over time. A relationship is placed in one of five regimes by the level of the correlation itself: Very-Negative, Mod-Negative, Neutral, Mod-Positive or Very-Positive. The model supplies the probability of each state and the risk of a switch, so the agent sees whether a relationship that usually holds is weakening or reversing, and not only where it stands now. The model is fitted walk-forward and needs a minimum history before it publishes a regime; until then the regime is Unknown.

Read the correlation switch risk as a relative signal, not as a calibrated probability. It is often close to zero, and a low value does not mean that a relationship is stable.

The cross-asset macro regime

Above both sits a single reading of the environment across asset classes. It combines the correlation between equities and bonds, the shape of the Treasury curve, the pricing of short-term rates, the volatility regimes and the structure of the session into one classification: a flight to safety, risk-on momentum, a reflationary move, a rate shock, credit stress, or a neutral drift. Each reading names the drivers that produced it and the sub-regimes of the individual market complexes. The classifier is rule-based, so every reading can be traced to the conditions that triggered it, and it is recalculated every five minutes.

How each row says how it was produced

Every regime row states how it was produced in inference_mode. This matters as soon as you look at history, because a label that was known at the time and a label drawn afterwards are not the same evidence.

online_current marks live rows. They are causal at their timestamp, meaning they use only data up to that bar, but the model is fitted on the same history it scores, so they are not out-of-sample. point_in_time marks rows scored strictly out of sample by a model fitted only on earlier data. For volatility these are the daily rows from 19 July 2023 to 25 March 2026, and for correlation regimes every new row from 29 September 2026. ex_post marks rows that came from a fit over the full sample and can reflect later data, so they describe the past better than anyone could have known it.

To judge how a regime would have helped in practice, ask for history with point_in_time_only=true, which keeps the point_in_time and online_current rows and leaves out ex_post. Because of the dates above, such a request returns nothing for the period between the end of the volatility point-in-time rows and the first live rows. Each row also names the model version and method that produced it, and a change of method is published as a new version instead of being applied silently.

When a value is missing

Mercury prefers an empty value to a wrong one. When a fit is unavailable or degenerate, the switch risk and the expansion probability are empty, never zero, and fallback_reason says why. They are also empty when the bar falls in a state that the model expects to leave within one bar: the label still describes that bar, but a forecast from such a state is not meaningful. Zero-range bars are excluded from the volatility input, the volatility model is checked for stationarity before it is fitted, and stale sources are flagged with a typed warning instead of being hidden. How current a value is, layer by layer, is set out in Freshness and evidence.

Where to read it

The tools that return these measures are query_volatility, query_correlations and get_regime. Each starts from an overview across markets and opens to one market or one pair at a time, in line with progressive disclosure. The products, expirations and spreads they cover are listed in Coverage.