All Liquidity Ratios
Calculates and collects all Liquidity Ratios based on the provided data.
All Liquidity Ratios in Python
collect_liquidity_ratios is part of the Ratios module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call collect_liquidity_ratios as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(["AAPL", "TSLA"], api_key="FINANCIAL_MODELING_PREP_KEY")
liquidity_ratios = toolkit.ratios.collect_liquidity_ratios()
liquidity_ratios.loc['AAPL']
Which returns:
| 2021 | 2022 | 2023 | 2024 | 2025 | |
|---|---|---|---|---|---|
| Current Ratio | 1.0746 | 0.8794 | 0.988 | 0.8673 | 0.8933 |
| Quick Ratio | 0.7086 | 0.4967 | 0.6267 | 0.5589 | 0.5704 |
| Cash Ratio | 0.4992 | 0.3137 | 0.4236 | 0.3695 | 0.3302 |
| Working Capital | 9.355e+09 | -1.8577e+10 | -1.742e+09 | -2.3405e+10 | -1.7674e+10 |
| Operating Cash Flow Ratio | 0.8291 | 0.7933 | 0.7607 | 0.6704 | 0.6731 |
| Operating Cash Flow to Sales Ratio | 0.2844 | 0.3098 | 0.2884 | 0.3024 | 0.2679 |
| Short Term Coverage Ratio | -4.7495 | -3.9423 | -4.1291 | -4.1839 | -4.5755 |
Parameters
collect_liquidity_ratios accepts the following parameters:
- 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.