Statistics Statements
Retrieves the balance, cash and income statistics for the company(s) from the specified source.
Note that this also obtains the balance sheet statement at the same time given that it’s the same API call. This is done to reduce the number of API calls to FinancialModelingPrep.
Also known as: key stats, shares outstanding, float data.
Statistics Statements in Python
get_statistics_statement is part of the Toolkit module of the open-source Finance Toolkit. Install it with:
pip install financetoolkit -U
Then call get_statistics_statement as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit("TSLA", api_key="FINANCIAL_MODELING_PREP_KEY", quarterly=True, start_date='2023-05-01')
toolkit.get_statistics_statement()
Which returns:
| 2023Q2 | |
|---|---|
| Reported Currency | USD |
| CIK ID | 1318605 |
| Filling Date | 2023-07-24 |
| Accepted Date | 2023-07-21 18:08:29 |
| Calendar Year | 2023 |
| Period | Q2 |
| SEC Link | https://www.sec.gov/Archives/edgar/data/1318605/000095017023033872/0000950170-23-033872-index.htm |
| Document Link | https://www.sec.gov/Archives/edgar/data/1318605/000095017023033872/tsla-20230630.htm |
Parameters
get_statistics_statement accepts the following parameters:
- enforce_source (str | None, optional): Forces this specific call to use a given source, either “FinancialModelingPrep” or “YahooFinance”. This takes precedence over the source set on the Toolkit itself, so one instance can pull historical data from the free Yahoo Finance source while still using a FinancialModelingPrep key for the financial statements (or the other way around). Defaults to None, which falls back to the Toolkit’s own enforce_source.
- overwrite (bool): Defines whether to overwrite the existing data.
- rounding (int): Defines the number of decimal places to round the data to.
- show_columns (list[str] | None): A list of column names to keep in the result. Invalid names are reported and ignored. Defaults to None, which keeps every column.