Zero Trading Days
Calculate how often an asset does not trade or its price does not move, per period: the share of trading days with a return of zero or without volume, or Liu’s (2006) turnover-adjusted measure.
A price that does not move while the market does is a sign that the value has not changed by more than the cost of trading on it: Lesmond, Ogden and Trzcinka (1999) estimate the transaction costs from the share of zero-return days, which needs nothing but daily prices and is one of the best liquidity proxies for markets without quote data. Liu (2006) counts the days without any volume, adjusted by the turnover to break ties between stocks with the same count, and shows that a liquidity-augmented CAPM with this measure explains the size and value premia.
The formula is as follows:
\[\text{Zero Return Days} = \frac{N_{R}}{N}\] \[\text{Zero Volume Days} = \frac{N_{V}}{N}\] \[\text{LM}_{x} = \frac{\left(N_{V} + \frac{\frac{1}{\text{TO}_{x}}}{\text{Deflator}}\right) \cdot 21 \cdot x}{N}\]Where \(N_{R}\) is the number of days with \(R_{t} = 0\), \(N_{V}\) the number of days with \(V_{t} = 0\), \(\text{LM}_{x}\) the measure of Liu, N is the number of trading days of the period (or the last rolling periods), x the number of months (1, or rolling with a monthly period), \(\text{TO}_{x}\) the sum of the daily turnover \(V_{t}\) / Weighted Average Shares_t over those months, and the Deflator 480,000 for one month and 11,000 for longer, so that the turnover term stays below one zero-volume day. Liu standardizes the count to 21 trading days a month.
Also known as: zero returns, Lesmond-Ogden-Trzcinka measure, LOT zeros, zero volume days, Liu liquidity measure, LM12, trading discontinuity.
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()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
On what share of trading days did Snap, Etsy and Lyft not move or not trade in each month of the first half of 2025?
Which returns:
| Date | SNAP | ETSY | LYFT | Benchmark |
|---|---|---|---|---|
| 2025-01 | 0 | 0.0000 | 0.00 | 0 |
| 2025-02 | 0 | 0.0526 | 0.00 | 0 |
| 2025-03 | 0 | 0.0000 | 0.00 | 0 |
| 2025-04 | 0 | 0.0000 | 0.00 | 0 |
| 2025-05 | 0 | 0.0000 | 0.00 | 0 |
| 2025-06 | 0 | 0.0000 | 0.05 | 0 |
6 rows
Parameters
get_zero_trading_days accepts the following parameters.
| 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” (the share of days with a return of zero), “zero_volume” (the share of days without volume), “liu” (Liu’s LM, 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 |
References
- Paper Lesmond, D. A., Ogden, J. P., & Trzcinka, C. A. (1999). “A New Estimate of Transaction Costs.” The Review of Financial Studies, 12(5), 1113-1141.
- Paper Liu, W. (2006). “A Liquidity-Augmented Capital Asset Pricing Model.” Journal of Financial Economics, 82(3), 631-671.