Corwin-Schultz Spread
Calculate the Corwin and Schultz (2012) high-low bid-ask spread, per asset and period.
The daily High is almost always a trade at the ask and the daily Low a trade at the bid, so the range of a day holds both the volatility and the bid-ask spread. The volatility part of the range grows with the length of the window while the spread part does not, so comparing the ranges of two single days with the range over both days together backs out the spread from daily High and Low prices alone, without quote data. Each pair of consecutive trading days gives an estimate and the spread of a period is the average of the estimates within it.
The estimator is mostly used where no quotes are available (historical studies, smaller markets) and ranks stocks well by their spread. For liquid large caps the spread is a few basis points and the estimate is dominated by the volatility within the day, so read it as a relative measure.
For more information about the method, see the following paper:
- Corwin, S. A., & Schultz, P. (2012). “A Simple Way to Estimate Bid-Ask Spreads from Daily High and Low Prices.” The Journal of Finance, 67(2), 719-760.
The formula is as follows:
\[\beta = \left[\ln\left(\frac{H_{t}}{L_{t}}\right)\right]^{2} + \left[\ln\left(\frac{H_{t+1}}{L_{t+1}}\right)\right]^{2}\] \[\gamma = \left[\ln\left(\frac{\max(H_{t},\; H_{t+1})}{\min(L_{t},\; L_{t+1})}\right)\right]^{2}\] \[\alpha = \frac{\sqrt{2 \beta} - \sqrt{\beta}}{3 - 2 \sqrt{2}} - \sqrt{\frac{\gamma}{3 - 2 \sqrt{2}}}\] \[\text{Two-Day Spread} = \max\left(\frac{2 \cdot (e^{\alpha} - 1)}{1 + e^{\alpha}},\; 0\right)\] \[\text{Corwin-Schultz Spread} = \operatorname{Mean}(\text{Two-Day Spreads within the period})\]Where H and L are the daily High and Low of two consecutive trading days t and t+1 of the asset. Before \(\beta\) and \(\gamma\) are calculated, day t+1 is adjusted for the overnight return as in the paper: when its Low is above the Close of day t, its High and Low are lowered by the difference, and when its High is below that Close, they are raised by the difference. A negative two-day spread is set to 0, the paper’s main convention, before the average is taken.
Also known as: high-low spread estimator, HL spread, CS spread.
Corwin-Schultz Spread in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_corwin_schultz_spread as shown below.
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_corwin_schultz_spread()
Or, after setting up the Finance Toolkit MCP, ask:
What was the bid-ask spread of Snap, Etsy and Lyft in each month of the first half of 2025, estimated from daily highs and lows with the Corwin-Schultz method?
Which returns:
| Date | SNAP | ETSY | LYFT | Benchmark |
|---|---|---|---|---|
| 2025-01 | 0.0106 | 0.0086 | 0.0095 | 0.0017 |
| 2025-02 | 0.011 | 0.0117 | 0.0115 | 0.002 |
| 2025-03 | 0.0119 | 0.0096 | 0.0151 | 0.0046 |
| 2025-04 | 0.0173 | 0.0174 | 0.0183 | 0.0099 |
| 2025-05 | 0.0098 | 0.0086 | 0.0096 | 0.0031 |
| 2025-06 | 0.0111 | 0.0067 | 0.0155 | 0.0024 |
Parameters
get_corwin_schultz_spread accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period to average the two-day spreads over (weekly, monthly, quarterly or yearly). Defaults to “monthly”, as in the paper. | "weekly" |
rolling | int | Average the two-day spreads of the last rolling periods instead of one period (e.g. period=’monthly’ and rolling=3 for a three-month spread at every month end). Defaults to None. | 4 |
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 spread 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 |
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 |