Calculates and collects all Valuation Ratios based on the provided data.

All Valuation Ratios in Python

collect_valuation_ratios is part of the Ratios module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call collect_valuation_ratios as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(["AAPL", "TSLA"], api_key="FINANCIAL_MODELING_PREP_KEY")

valuation_ratios = toolkit.ratios.collect_valuation_ratios()

valuation_ratios.loc['AAPL']

Which returns:

  2021 2022 2023 2024 2025
EV-to-EBIT 27.682 18.274 26.671 31.9683 31.3091
EV-to-EBITDA 25.7524 17.0831 24.9432 29.3152 28.7093
EV-to-Operating-Cash-Flow 29.7611 18.2565 28.3904 33.3825 37.2762
Tangible Asset Value 6.309e+10 5.0672e+10 6.2146e+10 5.695e+10 7.3733e+10
Net Current Asset Value -1.5308e+11 -1.6668e+11 -1.4687e+11 -1.5504e+11 -1.3755e+11
EV-to-Free-Cash-Flow 33.3102 20.0107 31.5146 36.2809 42.075
Graham Number 21.7378 20.662 23.2902 22.4928 28.7292
Buyback Yield 0.0283 0.0421 0.0255 0.0246 0.0222
Shareholder Yield 0.0283 0.0421 0.0255 0.0246 0.0251
SBC-Adjusted Free Cash Flow 8.5047e+10 1.02405e+11 8.8751e+10 9.7119e+10 8.5904e+10

Parameters

collect_valuation_ratios accepts the following parameters:

  • include_dividends (bool, optional): Whether to include dividends in the calculations. Defaults to False.
  • 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.
Share