Direct answer
You can measure volatility in Pair Liquidity by tracking how a chosen liquidity proxy varies over time in a fixed sampling window. Typical proxies include order-book depth (or available volume near a price), bid–ask spread, and execution slippage versus a reference price. The key is to define the proxy, define the measurement window and sampling frequency, and then compute a variability statistic such as standard deviation or percent change over that window—without treating the number as a standalone trading signal.
Mechanism and definition
“Pair liquidity” is about how easily a market for a currency pair can absorb trades with limited price impact. Because liquidity is not directly observable as a single physical quantity, measurement starts by selecting a proxy that reflects tradability.
Common proxies you can measure (conceptually, without assuming live data):
- Depth near the mid price: available buy/sell quantity within a defined distance from the mid price (for example, within X basis points). Depth is a quantity measure.
- Bid–ask spread: the difference between the best bid and best ask at each timestamp. Spread is often treated as a cost proxy.
- Execution slippage: the difference between a reference price (such as the mid at decision time) and the price actually realized for a hypothetical or observed trade size. Slippage is an outcome proxy.
Once you have a time series of a proxy, you can quantify “volatility” as variability over time. For example, you can compute:
- Standard deviation of the proxy within each rolling window.
- Coefficient of variation (standard deviation divided by the mean), useful when the average level differs across periods.
- Range (max minus min) over a window for a simple “spikiness” measure.
What the “volatility” measurement is actually telling you
A higher variability in depth or spread usually means execution conditions are changing more rapidly. A higher variability in slippage means the realized cost of trading (for the chosen size and reference) is less stable. In all cases, the result is a description of variability in your proxy, not a promise about future price movement.
Evidence through scenarios and example calculations
Scenario 1: depth-based proxy
Assume you sample order-book depth within a fixed band around the mid price every minute. For each hour (window), you collect depth values and compute standard deviation. If depth standard deviation is higher in hours surrounding market openings, that indicates liquidity is being replenished and consumed more unevenly during those times.
Assumptions you must state: the depth band size (how far from mid), the units (base or quote currency), and the sampling frequency.
Scenario 2: spread-based proxy
Assume you sample best bid and ask every 30 seconds for one trading day. For each 15-minute window, compute the mean spread and its standard deviation. A day with frequent widening and narrowing will show higher spread volatility.
Assumptions you must state: the definition of spread (best bid/ask only), and whether you exclude outliers caused by data gaps.
Scenario 3: slippage-based proxy
Assume you define a hypothetical trade size and model execution as consuming liquidity at levels in the order book until the size is filled. For each window, compute slippage relative to the mid at decision time. This produces a measure tied to “what happens when you actually trade,” but it depends strongly on the trade size.
Assumptions you must state: the trade size, the fill rule (partial fills, market impact model), and the reference price.
Material limitation and failure mode
A major failure mode is proxy mismatch: a depth metric that looks stable may still produce volatile realized outcomes if your execution size is large relative to available depth, or if fills depend on order-book dynamics. Another failure mode is regime dependence: liquidity volatility differs across sessions, news periods, and risk-off/risk-on conditions. Historical averages may not represent future conditions, especially if the market structure or your execution path changes.
Limitations, risks, and a verification checklist
Important limitations
- No single universal measurement: Different proxies measure different aspects of liquidity. Depth, spread, and slippage can disagree. - Sampling choices matter: Window length, sampling frequency, and the distance band for “near mid” depth change the volatility number.