Composite Debt Issuance
Calculate the composite debt issuance of Lyandres, Sun and Zhang (2008): the log growth of a company’s total debt over five years, which captures every way it raises or repays debt.
Lyandres, Sun and Zhang find that companies that raise debt earn lower returns afterwards, as companies that issue equity do, and explain both with the investment they finance. It is the debt counterpart of the composite equity issuance of get_composite_equity_issuance.
The formula is as follows:
\[\text{Composite Debt Issuance} = \ln\left(\frac{\text{Total Debt}}{\text{Beginning Total Debt}}\right)\]The beginning total debt is that at the start of the window, which is five years (20 quarters with quarterly data) unless trailing says otherwise. A debt of zero or less at either end gives NaN.
- Lyandres, E., L. Sun and L. Zhang (2008). “The New Issues Puzzle: Testing the Investment-Based Explanation.” Review of Financial Studies, 21(6), 2825-2855.
Also known as: debt growth, composite debt issuance, CDI.
Example · AAPL, MSFT, KO, XOM · 2016 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_composite_debt_issuance:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "KO", "XOM"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2016-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_composite_debt_issuance()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the composite debt issuance of Apple, Microsoft, Coca-Cola and ExxonMobil, the log growth of their total debt over five years, from 2016 to 2025?
Which returns:
| Item | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|---|---|---|---|
| AAPL | 1.1188 | 0.6423 | 0.4502 | 0.1356 | 0.0793 | 0.0971 | -0.0844 | |||
| KO | 0.0561 | 0.0140 | -0.0259 | -0.1608 | -0.0180 | 0.0352 | 0.0539 | |||
| MSFT | 1.3397 | 0.8444 | 0.4166 | -0.1976 | -0.0967 | 0.1238 | 0.3121 | |||
| XOM | 0.4770 | 0.5587 | 0.1094 | -0.0274 | 0.0952 | -0.1177 | -0.4406 |
4 rows
Parameters
get_composite_debt_issuance accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
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 ratios. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
compound | bool | Whether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False. | False |
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 |
trailing | int | The number of periods the debt growth covers. Defaults to None, which uses five years (20 quarters with quarterly data). | 4 |
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 Lyandres, E., L. Sun and L. Zhang (2008). “The New Issues Puzzle: Testing the Investment-Based Explanation.” Review of Financial Studies, 21(6), 2825-2855.