The Models module executes well-known models such as DuPont analysis and the Discounted Cash Flow (DCF) model, using data retrieved from the Toolkit module.

Every function of the Models module has its own page with an example and its parameters. Pick one from the sidebar on the left.Every function of the Models module has its own page with an example and its parameters. Pick one from the .

To install the FinanceToolkit it simply requires the following:

pip install financetoolkit -U
Search Results

Getting Started

The Models module is reached through a Toolkit instance, as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(["TSLA", "AMZN"], api_key="FINANCIAL_MODELING_PREP_KEY", quarterly=True, start_date='2022-12-31')

dupont_analysis = toolkit.models.get_extended_dupont_analysis()

dupont_analysis.loc['AMZN']

Which returns:

  2022Q2 2022Q3 2022Q4 2023Q1 2023Q2
Interest Burden Ratio -1.24465 0.858552 -2.88409 1.20243 1.01681
Tax Burden Ratio -0.611396 1.13743 0.101571 0.640291 0.878792
Operating Profit Margin -0.0219823 0.0231391 -0.00636042 0.0323498 0.0562125
Asset Turnover nan 0.299735 0.3349 0.274759 0.285319
Equity Multiplier nan 3.15403 3.14263 3.08433 2.91521
Return on Equity nan 0.0213618 0.00196098 0.0211066 0.0417791

The sidebar gives access to every metric in the Models module, each on its own page with a description, an example and its parameters. Pick one there to open it.The sidebar gives access to every metric in the Models module, each on its own page with a description, an example and its parameters. On a phone, open the to pick one.