Cache Contents
Show what the cache currently holds, grouped by source and dataset.
The cache stores data per source, per dataset and per entity (a ticker, a country, a series identifier), which makes it possible to remove part of it rather than all of it. This method is the counterpart to clear_cache: it shows what is there so that removing something is an informed decision.
The cache is inspected even when this Toolkit was created with use_cached_data=False, so a cache filled by an earlier session can always be reviewed.
Cache Contents in Python
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_cache_contents as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.get_historical_data()
toolkit.get_cache_contents()
Which returns:
| source | dataset | entities | entries | oldest_write | newest_write | |
|---|---|---|---|---|---|---|
| 25 | FinancialModelingPrep | earnings_calendar | 4 | 4 | 2026-10-24 18:40:06 | 2026-10-24 18:40:06 |
| 26 | FinancialModelingPrep | earnings_call_transcripts | 2 | 2 | 2026-10-24 18:41:46 | 2026-10-24 18:41:46 |
| 27 | FinancialModelingPrep | earnings_call_transcripts_selection | 2 | 2 | 2026-10-24 18:41:46 | 2026-10-24 18:41:46 |
| 28 | FinancialModelingPrep | employee_count | 2 | 2 | 2026-10-24 18:41:06 | 2026-10-24 18:41:06 |
| 29 | FinancialModelingPrep | esg_scores | 3 | 3 | 2026-10-24 18:40:40 | 2026-10-24 18:40:40 |