Returns industry performance - the average price change per industry. Provide exactly one of date (a snapshot across all industries on that date) or industry (the historical time series for one industry).

Also known as: industry performance snapshot, industry performance history, industry trend.

Industry Performance in Python

get_industry_performance is part of the Discovery module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call get_industry_performance as shown below.

from financetoolkit import Discovery

discovery = Discovery(api_key="FINANCIAL_MODELING_PREP_KEY")

industry_snapshot = discovery.get_industry_performance(date="2024-02-01")

industry_snapshot.head()

industry_history = discovery.get_industry_performance(industry="Biotechnology")

industry_history.tail()

Which returns:

Industry Date Exchange Average Change
Advertising Agencies 2024-02-01 NASDAQ 3.8660
Aerospace & Defense 2024-02-01 NASDAQ 0.5853
Agricultural Farm Products 2024-02-01 NASDAQ 1.6564
Agricultural Inputs 2024-02-01 NASDAQ 0.5436
Agricultural - Machinery 2024-02-01 NASDAQ 1.4934

Parameters

get_industry_performance accepts the following parameters:

  • date (str, optional): The date to retrieve a snapshot for, e.g. “2024-02-01”.
  • industry (str, optional): The industry to retrieve the history for, e.g. “Biotechnology”.
Share