Liu Liquidity Measure
The Liu Liquidity Measure (LM) of Liu (2006) is the number of zero-volume days, standardised to a month of 21 trading days and adjusted by the turnover to break ties between stocks with the same count: of two stocks that both trade every day, the one with the lower turnover is the less liquid. Liu shows that a liquidity-augmented CAPM with this measure explains the size and value premia; the 12-month version, LM12, is the main measure of the paper.
The formula for the Liu Liquidity Measure starts from the turnover \(\text{TO}_{x}\) over x months, the sum of the daily volume \(V_{t}\) over the weighted average shares outstanding \(S_{t}\) across the N trading days of those months:
\[\text{TO}_{x} = \sum_{t=1}^{N} \frac{V_{t}}{S_{t}}\]It adds a small turnover term to the number of zero-volume days \(N_{V}\), with the Deflator 480,000 for one month and 11,000 for longer (the values of Liu, which keep the turnover term below one zero-volume day), and scales the count to 21 trading days per month:
\[\text{LM}_{x} = \frac{\left(N_{V} + \frac{\frac{1}{\text{TO}_{x}}}{\text{Deflator}}\right) \cdot 21 \cdot x}{N}\]The measure is in days: a higher value is a less liquid stock, and the turnover term only orders stocks with the same number of zero-volume days.
Trading discontinuity is one of the oldest signs of illiquidity: an asset that often does not trade, or whose price does not move while the market does, is costly to trade. A price only moves once the change of its value exceeds the cost of trading on it, so the more often the price stands still, the higher that cost. The measures need nothing but daily prices and volume, which makes them some of the best liquidity proxies for markets and periods without quote data. Large caps rarely have a day without a price change or without volume, so the measures separate mostly small and less traded stocks.
Also known as: Liu’s LM, LM12, Liu liquidity, turnover-adjusted zero volume.
In the Finance Toolkit this is get_zero_trading_days with method="liu", the same function as Zero Trading Days.
Example · SNAP, ETSY, LYFT · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_zero_trading_days:
from financetoolkit import Toolkit
toolkit = Toolkit(
["SNAP", "ETSY", "LYFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-06-30",
)
toolkit.risk.get_zero_trading_days(method="liu")
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period counted over. Options are: “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “monthly”; Liu’s measure is defined for months. | "weekly" |
rolling | int | Count over the last rolling periods together (rolling=12 with a monthly period gives Liu’s LM12). At least 2. Defaults to None. | 4 |
method | str | The measure. Options are: “zero_return” (Zero Return Days, the share of days with a return of zero), “zero_volume” (Zero Volume Days, the share of days without volume), “liu” (Liu Liquidity Measure, which needs the shares outstanding). Defaults to “zero_return”. | "zero_return" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the measure over time. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
Which returns:
| Date | SNAP | ETSY | LYFT | Benchmark |
|---|---|---|---|---|
| 2025-01 | 0 | 0 | 0 | |
| 2025-02 | 0 | 0 | 0 | |
| 2025-03 | 0 | 0 | 0 | |
| 2025-04 | 0 | 0 | 0 | |
| 2025-05 | 0 | 0 | 0 | |
| 2025-06 | 0 | 0 | 0 |
6 rows
References
- Paper Liu, W. (2006). “A Liquidity-Augmented Capital Asset Pricing Model.” Journal of Financial Economics, 82(3), 631-671.