Zero Volume Days
The Zero Volume Days measure is the share of the trading days of a period on which the asset does not trade at all, the count that Liu (2006) builds his liquidity measure on.
The formula for the Zero Volume Days counts the number of days \(N_{V}\) with a volume \(V_{t}\) of zero among the N trading days of the period:
\[\text{Zero Volume Days} = \frac{N_{V}}{N}\]A higher share is a less liquid asset, which can go days without a trade. For most listed stocks the share is 0, so the measure separates only the least traded assets.
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: zero volume, non-trading days, no-trade days.
In the Finance Toolkit this is get_zero_trading_days with method="zero_volume", 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="zero_volume")
| 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 | 0 |
| 2025-02 | 0 | 0 | 0 | 0 |
| 2025-03 | 0 | 0 | 0 | 0 |
| 2025-04 | 0 | 0 | 0 | 0 |
| 2025-05 | 0 | 0 | 0 | 0 |
| 2025-06 | 0 | 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.