All Solvency Ratios
Calculates and collects all Solvency Ratios based on the provided data.
All Solvency Ratios in Python
collect_solvency_ratios is part of the Ratios module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call collect_solvency_ratios as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(["AAPL", "TSLA"], api_key="FINANCIAL_MODELING_PREP_KEY")
solvency_ratios = toolkit.ratios.collect_solvency_ratios()
solvency_ratios.loc['AAPL']
Which returns:
| 2021 | 2022 | 2023 | 2024 | 2025 | |
|---|---|---|---|---|---|
| Debt Service Coverage Ratio | 0.8683 | 0.7757 | 0.7866 | 0.6985 | 0.8033 |
| Equity Multiplier | 5.255 | 6.1862 | 6.252 | 6.0251 | 5.5418 |
| Free Cash Flow Yield | 0.031 | 0.0525 | 0.0327 | 0.0282 | 0.0242 |
| Net-Debt to EBITDA Ratio | 0.8449 | 0.8337 | 0.7468 | 0.6618 | 0.5281 |
| Cash Flow Coverage Ratio | 0.7621 | 0.922 | 0.892 | 0.9932 | 0.992 |
| CAPEX Coverage Ratio | -9.3855 | -11.4075 | -10.087 | -12.5176 | -8.7678 |
| Dividend CAPEX Coverage Ratio | -4.0716 | -4.781 | -4.2543 | -4.7913 | -3.9623 |
| Debt-to-Capital Ratio | 0.6839 | 0.7233 | 0.666 | 0.6764 | 0.6038 |
Parameters
collect_solvency_ratios accepts the following parameters:
- diluted (bool, optional): Whether to use diluted shares for the calculation. Defaults to True.
- rounding (int, optional): The number of decimals to round the results to. Defaults to 4.
- growth (bool, optional): Whether to calculate the growth of the ratios. Defaults to False.
- lag (int | str, optional): The lag to use for the growth calculation. Defaults to 1.
- standardize (bool, optional): Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.
- trailing (int): Defines whether to select a trailing period. E.g. when selecting 4 with quarterly data, the TTM is calculated.