Economics
The Economics module provides insights for 60+ countries into key economic indicators such as the Consumer Price Index (CPI), Gross Domestic Product (GDP), Unemployment Rates and government interest rates. It can also be used as a standalone module.
Every function of the Economics module has its own page with an example and its parameters. Pick one from the sidebar on the left.Every function of the Economics 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
Getting Started
The module doesn’t depend on company data, so you can also import it on its own with from financetoolkit import Economics when you don’t need the rest of the Toolkit.
The example below uses it through a Toolkit instance instead.
from financetoolkit import Toolkit
toolkit = Toolkit(["AMZN", "ASML"])
cpi = toolkit.economics.get_consumer_price_index(period='yearly')
cpi.loc['2015':, ['United States', 'Netherlands', 'Japan']]
Which returns:
| United States | Netherlands | Japan | |
|---|---|---|---|
| 2015 | 100 | 100 | 100 |
| 2016 | 101.262 | 100.317 | 99.8727 |
| 2017 | 103.419 | 101.703 | 100.356 |
| 2018 | 105.945 | 103.435 | 101.349 |
| 2019 | 107.865 | 106.159 | 101.824 |
| 2020 | 109.195 | 107.51 | 101.799 |
| 2021 | 114.325 | 110.387 | 101.561 |
| 2022 | 123.474 | 121.427 | 104.098 |
The sidebar gives access to every metric in the Economics 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 Economics module, each on its own page with a description, an example and its parameters. On a phone, open the to pick one.