Export Price Index
Get the Export Price Index for a variety of countries over time. The index measures the average change over time in the prices a country’s producers receive for the goods they sell abroad, in its own currency. Together with the Import Price Index it gives the terms of trade, and it shows how much of a currency move or a foreign price shock exporters pass on.
Each country’s index comes monthly from its official publisher:
\[\text{Eurostat for the euro area, the European Union and around 35 European countries:}\;\; \text{the industrial producer prices on the non-domestic market (industry except construction, sewerage and waste management)},\;\; 2021 = 100. \;\text{For the euro area these include sales to other members}\] \[\text{The Bureau of Labor Statistics for the United States:}\;\; \text{the export price index of all commodities},\;\; 2000 = 100. \;\text{The BLS API returns about the last three}\; \text{years;} \;\text{with}\; a \;\text{FRED API key the full history comes from FRED}\] \[\text{The Bank of Japan for Japan:}\;\; \text{the export price index in yen},\;\; 2020 = 100,\;\; \text{from 1960}\]All indices are not seasonally adjusted, so changes are best taken year over year (growth=True with lag=12 on monthly data), which returns them as decimals (0.057 for 5.7%). The base year differs per country, so compare growth rather than levels. Quarterly and yearly values are the average of the months, for complete periods only.
See definition: https://ec.europa.eu/eurostat/cache/metadata/en/sts_inpp_esms.htm
Also known as: export prices, XPI, trade prices.
Export Price Index in Python
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_export_price_index as shown below.
from financetoolkit import Economics
economics = Economics(start_date='2025-10-01', end_date='2026-09-30')
economics.get_export_price_index(
countries=['United States', 'Euro Area', 'Japan'],
period='monthly',
growth=True,
lag=12,
)
Which returns:
| United States | Euro Area | Japan | |
|---|---|---|---|
| 2025-10 | nan | -0.0052 | 0.0224 |
| 2025-11 | 0.0329 | -0.0087 | 0.0205 |
| 2025-12 | 0.0341 | -0.0147 | 0.04 |
| 2026-01 | 0.0251 | -0.0129 | 0.0494 |
| 2026-02 | 0.038 | -0.018 | 0.0838 |
| 2026-03 | 0.0564 | 0.0121 | 0.113 |
| 2026-04 | 0.0931 | 0.0323 | 0.1809 |
| 2026-05 | 0.1135 | 0.042 | 0.2057 |
| 2026-06 | 0.0998 | 0.042 | 0.2126 |
| 2026-07 | 0.0812 | 0.0525 | 0.1936 |
| 2026-08 | 0.0928 | 0.0623 | 0.1796 |
| 2026-09 | 0.1163 | 0.0747 | 0.1786 |
Parameters
get_export_price_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | The countries to include in the data. Defaults to None. | ["United States", "Germany"] |
period | str | None | Whether to return the monthly, quarterly or the annual data. Defaults to None, which is quarterly when the Economics class was initialized with quarterly=True and monthly otherwise. | "weekly" |
rolling | int | The rolling window size to use for smoothing the data (simple moving average). Defaults to None. | 4 |
trailing | int | The trailing window size to use for summing the data over trailing periods (e.g. a trailing-4-quarter sum). Defaults to None. | 4 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |